Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
public static interface

MediaPlayer.OnBufferingUpdateListener

android.media.MediaPlayer.OnBufferingUpdateListener

Class Overview

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

public abstract void onBufferingUpdate ( MediaPlayer mp, int percent)

Added in API level 1

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 the MediaPlayer the update pertains to
percent the percentage (0-100) of the content that has been buffered or played thus far