Skip to content

Most visited

Recently visited

navigation
Added in API level 1

MediaPlayer.OnBufferingUpdateListener

public static interface MediaPlayer.OnBufferingUpdateListener

android.media.MediaPlayer.OnBufferingUpdateListener


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

Summary

Public methods

abstract void onBufferingUpdate(MediaPlayer mp, int percent)

Called to update status in buffering a media stream received through progressive HTTP download.

Public methods

onBufferingUpdate

Added in API level 1
void onBufferingUpdate (MediaPlayer mp, 
                int percent)

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.

Parameters
mp MediaPlayer: the MediaPlayer the update pertains to
percent int: the percentage (0-100) of the content that has been buffered or played thus far
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.