CaptionTrack

Properties

Name
Type
Access
Min Version
Description
name
string
R
25.0
Get the name of the track
id
number
R
25.0
The ID of the track within the TrackGroup

Instance Methods

getIndex

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

number

Index representing the track index of this track within the track group.

getMediaType

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

Guid

UUID representing the underlying media type of this track

getTrackItems

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

[]

Returns the track items of the specified media type from the given track

Parameters

Name
Type
Description
trackItemType
number
-
includeEmptyTrackItems
boolean
-

isMuted

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

boolean

Get mute state of the track

setMute

<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">25.0</span>

boolean

sets the mute state of the track to muted/unmuted

Parameters

Name
Type
Description
mute
boolean
-