Android.Media.MediaPlayer.DeselectTrack Method
Deselect a track.

Syntax

[Android.Runtime.Register("deselectTrack", "(I)V", "GetDeselectTrack_IHandler")]
public virtual void DeselectTrack (int index)

See Also

MediaPlayer.GetTrackInfo

Parameters

index
the index of the track to be deselected. The valid range of the index is 0..total number of tracks - 1. The total number of tracks as well as the type of each individual track can be found by calling MediaPlayer.GetTrackInfo method.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif called in an invalid state.

Remarks

Deselect a track.

Currently, the track must be a timed text track and no audio or video tracks can be deselected. If the timed text track identified by index has not been selected before, it throws an exception.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16