Share via


MediaPlayer.GetTrackInfo Method

Definition

Returns an array of track information.

[Android.Runtime.Register("getTrackInfo", "()[Landroid/media/MediaPlayer$TrackInfo;", "GetGetTrackInfoHandler")]
public virtual Android.Media.MediaPlayer.TrackInfo[]? GetTrackInfo ();
[<Android.Runtime.Register("getTrackInfo", "()[Landroid/media/MediaPlayer$TrackInfo;", "GetGetTrackInfoHandler")>]
abstract member GetTrackInfo : unit -> Android.Media.MediaPlayer.TrackInfo[]
override this.GetTrackInfo : unit -> Android.Media.MediaPlayer.TrackInfo[]

Returns

Array of track info. The total number of tracks is the array length. Must be called again if an external timed text source has been added after any of the addTimedTextSource methods are called.

Attributes

Exceptions

if it is called in an invalid state.

Remarks

Java documentation for android.media.MediaPlayer.getTrackInfo().

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