how determine video buffered uri(youtube) in mediaplayer on android? there callback?
if want see when video ready playback, use callback. http://developer.android.com/reference/android/media/mediaplayer.onpreparedlistener.html
onprepared(mediaplayer mp) //called when media file ready playback.
if see when video 100% buffered, use callback: http://developer.android.com/reference/android/media/mediaplayer.onbufferingupdatelistener.html
public abstract void onbufferingupdate (mediaplayer mp, int percent)
added in api level 1 called update status in buffering media stream received through progressive http download. received buffering percentage indicates how of content has been buffered or played. example buffering update of 80 percent when half content has been played indicates next 30 percent of content play has been buffered.
parameters mp mediaplayer update pertains percent percentage (0-100) of content has been buffered or played far
Comments
Post a Comment