Additional video track information
The OTVTrackInfo
class contains additional information about video tracks, each representing a video Adaptation Set extracted from the stream’s manifest. It provides the following methods:
isActive()
returnstrue
for the selected track, andfalse
for all other video tracks in the listgetName()
provides a string describing the track (which may be simply the language)getLanguage()
provides the language code string in either way of ISO-639-1 or ISO-639-2getEncodeType()
always returns 0 for video tracks - the codecs of the underlying video tracks must be retrieved viaOTVVideoTrackInfo.getCodecs()
- a list of the track’s underlyingOTVVideoTrackInfo
objects is retrieved via thegetVideoTrackInfos()
methodgetCharacteristics()
returns a string of track characteristics as advertised in some HLS streams.getMimeType()
will return the MIME type for the trackgetAudioChannelCount()
will return-1
for video tracksgetVideoTrackInfos()
returns a list ofOTVVideoTrackInfo
objects. EachOTVVideoTrackInfo
object corresponds to one of the video Representations belonging to the Adaptation Set for which thisOTVTrackInfo
holds information. Each Representation - and therefore eachOTVVideoTrackInfo
- may contain data on resolution, bitrate, framerate and aspect ratio.
The OTVVideoTrackInfo
class contains the following methods for retrieving data about a Representation:
getBitrate()
returns the video Representation’s bitrategetWidth()
returns the video Representation’s width in pixelsgetHeight()
returns the video Representation’s height in pixelsgetFrameRate()
returns the video Representation’s framerategetCodecs()
returns a string listing the video Representation’s codecs ornull
if unknowngetPixelWidthHeightRatio()
returns the video Representation’s floating-point width-to-height ratio, or 1.0 if unknown