MediaPlayer.IOnInfoListener.OnInfo(MediaPlayer, MediaInfo, Int32) Method

Definition

Called to indicate an info or a warning.

[Android.Runtime.Register("onInfo", "(Landroid/media/MediaPlayer;II)Z", "GetOnInfo_Landroid_media_MediaPlayer_IIHandler:Android.Media.MediaPlayer/IOnInfoListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnInfo (Android.Media.MediaPlayer? mp, Android.Media.MediaInfo what, int extra);
[<Android.Runtime.Register("onInfo", "(Landroid/media/MediaPlayer;II)Z", "GetOnInfo_Landroid_media_MediaPlayer_IIHandler:Android.Media.MediaPlayer/IOnInfoListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnInfo : Android.Media.MediaPlayer * Android.Media.MediaInfo * int -> bool

Parameters

mp
MediaPlayer

the MediaPlayer the info pertains to.

what
MediaInfo

the type of info or warning. <ul> <li>#MEDIA_INFO_UNKNOWN<li>#MEDIA_INFO_VIDEO_TRACK_LAGGING<li>#MEDIA_INFO_VIDEO_RENDERING_START<li>#MEDIA_INFO_BUFFERING_START<li>#MEDIA_INFO_BUFFERING_END<li>MEDIA_INFO_NETWORK_BANDWIDTH (703) - bandwidth information is available (as extra kbps) <li>#MEDIA_INFO_BAD_INTERLEAVING<li>#MEDIA_INFO_NOT_SEEKABLE<li>#MEDIA_INFO_METADATA_UPDATE<li>#MEDIA_INFO_UNSUPPORTED_SUBTITLE<li>#MEDIA_INFO_SUBTITLE_TIMED_OUT</ul>

extra
Int32

an extra code, specific to the info. Typically implementation dependent.

Returns

True if the method handled the info, false if it didn't. Returning false, or not having an OnInfoListener at all, will cause the info to be discarded.

Attributes

Remarks

Called to indicate an info or a warning.

Java documentation for android.media.MediaPlayer.OnInfoListener.onInfo(android.media.MediaPlayer, int, int).

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.

Applies to