Class: shaka.ui.TextStylePreview

Constructor

new TextStylePreview(playernon-null, localizationnon-null)

Parameters:
Name Type Description
player shaka.Player
localization shaka.ui.Localization
Source:

Members

player_ :?

Type:
  • ?
Source:

shown_ :boolean

Type:
  • boolean
Source:

Methods

getLocalizedExampleText_() → {string}

Source:
Returns:
Type
string

getTextDisplayer_() → {?}

Source:
Returns:
Type
?

hide()

Removes the temporary subtitle style preview.
Source:

release()

Releases all resources owned by this preview.
Source:

reset()

Reverts the temporary subtitle to the style captured when shown.
Source:

show()

Shows a temporary subtitle with the current text displayer style.
Source:

update(configopt, non-null)

Updates the temporary subtitle style without changing player config.
Parameters:
Name Type Attributes Description
config shaka.ui.TextStylePreview.Configuration <optional>
Source:

updateBaseConfig_()

Source:

Type Definitions

Configuration

Text displayer fields that the style preview can temporarily override.
Type:
Source: