new TextTrack(options)

[tracks/text-track.js](https://docs.videojs.com/tracks_text-track.js.html), [line 123](https://docs.videojs.com/tracks_text-track.js.html#line123)

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>
‘vjstrack‘ + 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