Log in or register to post comments

VideoPlayback error

April 29, 2013 - 8:11am #1

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

VideoPlayback error

May 6, 2013 - 2:59am #6

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);

An example of OnCompletionListener is already there in the sample (currently working in the video-on-texture case, while the fullscreen case must be implemented)

VideoPlayback error

May 6, 2013 - 12:46am #5

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

VideoPlayback error

April 30, 2013 - 9:41am #4

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.

So, this should not prevent your sample from working normally.

So, can you clarify a bit what is the problem you are facing ?

 

VideoPlayback error

April 30, 2013 - 3:00am #3

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?

VideoPlayback error

April 29, 2013 - 10:35am #2

Hi, have you made some changes to the sample ?

"mOnVideoSizeChangedListener is null" message seems to indicate that you have made some changes to the sample code, is it possible ?

 

Log in or register to post comments