Class: TextTrackSettings

TextTrackSettings

Manipulate Text Tracks settings.


new TextTrackSettings(player [, options])

Creates an instance of this class.

Parameters:
Name Type Argument Description
player Player

The Player that this class should be attached to.

options Object <optional>

The key/value store of player options.

Extends

  • ModalDialog

Methods


content()

Get content

Returns:

content

Type
Object

description()

Get localize description

Returns:

localize description

Type
string

dispose()

dispose


getValues()

Gets an object of text track settings (or null).

Returns:

An object with config values parsed from the DOM or localStorage.

Type
Object

label()

Get localize label

Returns:

localize label

Type
string

restoreSettings()

Restore texttrack settings from localStorage


saveSettings()

Save text track settings to localStorage


setDefaults()

Sets all <select> elements to their default values.


setValues(values)

Sets text track settings from an object of values.

Parameters:
Name Type Description
values Object

An object with config values parsed from the DOM or localStorage.


updateDisplay()

Update display of text track settings