Skip to content Skip to sidebar Skip to footer

Onbufferingupdate Not Being Called In Mediaplayer

My OnBufferingUpdate never gets called when I try to use it with my MediaPlayer. I'm using videos saved on my SDcard as the media source. I think this is the source of the problem

Solution 1:

You've answered your own question! :)

onBufferingUpdate() is only called for resources being streamed over a network, so this will not be called for local resources.

http://developer.android.com/reference/android/media/MediaPlayer.OnBufferingUpdateListener.html

Interface definition of a callback to be invoked indicating buffering status of a media resource being streamed over the network.

From the source code:

Called to update status in buffering a media stream received through progressive HTTP download. The received buffering percentage indicates how much of the content has been buffered or played. For example a buffering update of 80 percent when half the content has already been played indicates that the next 30 percent of the content to play has been buffered.

Post a Comment for "Onbufferingupdate Not Being Called In Mediaplayer"