"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

VideoPlayback error

Hi,

I'm using the videoplayback sample and I find these errors:

mOnVideoSizeChangedListener is null. Failed to send MEDIA_SET_VIDEO_SIZE message.

mOnCompletionListener is null. Failed to send MEDIA_PLAYBACK_COMPLETE message.

I need to start a new activity when the movie is finished but with this error i can't intercept when to start the Activity.

Can you please give me some suggestions?

Thanks

 

Luca

Hi, I haven't made any changes, moreover I have downloaded the new version 2.0.7 available on the server but I have still the same errors. I'm using the Samsung Galaxy Tab 2 10.1. Do I need to add this device somewhere?

Hi, I investigated the issue a bit more, and those messages are actually expected messages, because the MediaPlayer will try to notify all listeners, and iof some listeners have not been installed, the Media Player will log those messages.

I suppose I need that message because I want to start a new activity when the movie is finished. If you have an alternative way to perform this task please tell me.

Thanks

Hi, you will then need to register your own OnCompletionListener in the VideoPlaybackHelper class (or in the FullscreenPlayback class if you are using fullscreen mode);