MediaPlayer.IOnBufferingUpdateListener.OnBufferingUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called to update status in buffering a media stream received through progressive HTTP download.
[Android.Runtime.Register("onBufferingUpdate", "(Landroid/media/MediaPlayer;I)V", "GetOnBufferingUpdate_Landroid_media_MediaPlayer_IHandler:Android.Media.MediaPlayer/IOnBufferingUpdateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnBufferingUpdate (Android.Media.MediaPlayer? mp, int percent);
[<Android.Runtime.Register("onBufferingUpdate", "(Landroid/media/MediaPlayer;I)V", "GetOnBufferingUpdate_Landroid_media_MediaPlayer_IHandler:Android.Media.MediaPlayer/IOnBufferingUpdateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnBufferingUpdate : Android.Media.MediaPlayer * int -> unit
Parameters
- mp
- MediaPlayer
the MediaPlayer the update pertains to
- percent
- Int32
the percentage (0-100) of the content that has been buffered or played thus far
- Attributes
Remarks
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.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.