Additional multi-audio track information
The OTVTrackInfo
class contains additional information about audio tracks, each representing an audio Adaptation Set extracted from the stream’s manifest. It provides the following methods:
isActive()
returnstrue
for the selected track, andfalse
for all other audio tracks in the listgetName()
provides a string describing the track (which may be simply the language)getLanguage()
provides the language code string in either the ISO-639-1 or ISO-639-2 formatgetEncodeType()
returns an integer representing the audio encoding (see the reference API ofOTVTrackInfo
for the various values)getCharacteristics()
returns a string of track characteristics as advertised in some HLS streams. For audio tracks, this may include "public.accessibility.describes-video"getMimeType()
will return the MIME type of the audio trackgetAudioChannelCount()
will return the number of audio channels in the trackgetVideoTrackInfos()
will returnnull
for audio tracks