Class: shaka.ui.TextSelection

Constructor

(export) new TextSelection(parentnon-null, controlsnon-null)

Parameters:
Name Type Description
parent HTMLElement
controls shaka.ui.Controls
Extends:
Source:

Extends

Classes

Factory

Members

(protected, non-null) backButton :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(protected, non-null) backSpan :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(protected, non-null) button :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(private, non-null) captionsOffSpan_ :HTMLElement

Type:
  • HTMLElement
Source:

(protected, non-null) currentSelection :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(protected, non-null) icon :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:
Type:
  • HTMLElement
Overrides:
Source:

(protected, non-null) nameSpan :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(export) parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(export) player :shaka.Player

Type:
Overrides:
Source:

Methods

(private) addButton_(iconText)

Parameters:
Name Type Description
iconText string
Overrides:
Source:

(private) addMenu_()

Overrides:
Source:

(private) addOffOption_()

Source:

(private) onButtonClick_()

Overrides:
Source:

(private) onCaptionStateChange_()

Source:

(async, private) onTextLanguageSelected_(language) → (non-null) {Promise}

Parameters:
Name Type Description
language string
Source:
Returns:
Type
Promise

(private) onTracksChanged_()

Source:

(private) updateLocalizedStrings_()

Source:

(private) updateTextLanguages_()

Source: