Dela via


MediaPlayer.DeselectTrack(Int32) Method

Definition

Deselect a track.

[Android.Runtime.Register("deselectTrack", "(I)V", "GetDeselectTrack_IHandler")]
public virtual void DeselectTrack (int index);
[<Android.Runtime.Register("deselectTrack", "(I)V", "GetDeselectTrack_IHandler")>]
abstract member DeselectTrack : int -> unit
override this.DeselectTrack : int -> unit

Parameters

index
Int32

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 #getTrackInfo() method.

Attributes

Exceptions

if 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.

Java documentation for android.media.MediaPlayer.deselectTrack(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

See also