MediaTrackList_Objc
@objc(THEOplayerMediaTrackList)
public protocol MediaTrackList_Objc
A MediaTrackList lists all available MediaTrack objects that the player can play. It contains MediaTrack objects, which are either AudioTracks or VideoTracks.
-
The number of media tracks in the list of media tracks.
Declaration
Swift
var count: Int { get }
-
Returns the MediaTrack object representing the media track at the index position in the player’s list of audio or video tracks.
Declaration
Swift
@objc(get:) func get_Objc(_ index: Int) -> MediaTrack_Objc
Parameters
index
Position of the returned MediaTrack.
Return Value
The MediaTrack at the index position.