Class: shaka.ui.TextSelection

Constructor

new TextSelection(parentnon-null, controlsnon-null)

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

Extends

Classes

Factory

Members

backButton :HTMLButtonElement

Type:
  • HTMLButtonElement
Overrides:
Source:

backSpan :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

button :HTMLButtonElement

Type:
  • HTMLButtonElement
Overrides:
Source:

captionsOffSpan_ :HTMLElement

Type:
  • HTMLElement
Source:

currentSelection :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

icon :HTMLElement

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

nameSpan :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Source:

Methods

addButton_(iconText)

Parameters:
Name Type Description
iconText string
Overrides:
Source:

addOffOption_()

Source:

onCaptionStateChange_()

Source:

onTextTrackSelected_(tracknon-null) → {Promise}

Parameters:
Name Type Description
track shaka.extern.Track
Source:
Returns:
Type
Promise

onTracksChanged_()

Source:

updateLocalizedStrings_()

Source:

updateTextLanguages_()

Source: