OpenTV Player Web HTML5

Class: TextTrack

videojs~videojs. TextTrack

A representation of a single TextTrack.

new module:videojs~videojs.TextTrack(options)

Create an instance of this class.

Name Type Default Description
options Object {}

Object of option names and values

Name Type Default Description
tech Tech

A reference to the tech that owns this TextTrack.

kind TextTrack~Kind 'subtitles' optional

A valid text track kind.

mode TextTrack~Mode 'disabled' optional

A valid text track mode.

id string 'vjs_track_' + Guid.newGUID() optional

A unique id for this TextTrack.

label string '' optional

The menu label for this track.

language string '' optional

A valid two character language code.

srclang string '' optional

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

src string optional

A url to TextTrack cues.

default boolean optional

If this track should default to on or off.

accessibilityPurpose string optional

A string representing the accessibility purpose of the track.

See:

Extends