TrackInfo

public void TrackInfo(List<Bundle> tracks, int selectedIndex, int trackType)

Constructs a new TrackInfo instance with the specified track details.

Parameters

tracks

A list of Bundle objects, each containing metadata for a track. For text tracks ("SandboxedPlayer.TRACK_TYPE_TEXT"), each Bundle includes an "id" (integer index) and a "sourceId" (string description of the source). For video ("SandboxedPlayer.TRACK_TYPE_VIDEO") and audio ("SandboxedPlayer.TRACK_TYPE_AUDIO") tracks, each Bundle includes only an "id". If null, an empty list is used instead.

selectedIndex

The index of the currently selected track in the list, or a negative value if no track is selected.

trackType

An integer representing the type of tracks: "SandboxedPlayer.TRACK_TYPE_VIDEO" for video, "SandboxedPlayer.TRACK_TYPE_AUDIO" for audio, or "SandboxedPlayer.TRACK_TYPE_TEXT" for text.