videojs~videojs. TextTrack

A representation of a single TextTrack.

Constructor

new TextTrack(options)

Create an instance of this class.

Parameters:
NameTypeDefaultDescription
optionsObject{}

Object of option names and values

Properties
NameTypeAttributesDefaultDescription
techTech

A reference to the tech that owns this TextTrack.

kindTextTrack~Kind<optional>
'subtitles'

A valid text track kind.

modeTextTrack~Mode<optional>
'disabled'

A valid text track mode.

idstring<optional>
'vjs_track_' + Guid.newGUID()

A unique id for this TextTrack.

labelstring<optional>
''

The menu label for this track.

languagestring<optional>
''

A valid two character language code.

srclangstring<optional>
''

A valid two character language code. An alternative, but deprioritized version of options.language

srcstring<optional>

A url to TextTrack cues.

defaultboolean<optional>

If this track should default to on or off.

See

Extends