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

(private, non-null) backFromCaptionsButton_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) backFromCaptionsSpan_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) captionButton_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) captionIcon_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) captionsNameSpan_ :HTMLElement

Type:
  • HTMLElement
Source:

(private, non-null) captionsOffSpan_ :HTMLElement

Type:
  • HTMLElement
Source:

(protected) controls :shaka.ui.Controls

Type:
Overrides:
Source:

(private, non-null) currentCaptions_ :HTMLElement

Type:
  • HTMLElement
Source:

(protected) parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

(protected) player :shaka.Player

Type:
Overrides:
Source:

(private, non-null) textLangMenu_ :HTMLElement

Type:
  • HTMLElement
Source:

(protected) video :HTMLMediaElement

Type:
Overrides:
Source:

Methods

(private) addCaptionButton_()

Source:

(private) addTextLangMenu_()

Source:

(private) onCaptionClick_()

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: