Constructor
new TextStylePreview(playernon-null, localizationnon-null)
Parameters:
| Name | Type | Description |
|---|---|---|
player |
shaka.Player | |
localization |
shaka.ui.Localization |
- Source:
Members
Methods
apply_()
- Source:
getLocalizedExampleText_() → {string}
- Source:
Returns:
- Type
- string
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:
- {fontScaleFactor: (number|undefined), positionArea: (shaka.config.PositionArea|undefined)}
- Source: