Constructor
new PlaybackRateSelection(parentnon-null, controlsnon-null)
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Classes
Members
backButton :HTMLButtonElement
Type:
- HTMLButtonElement
- Overrides:
- Source:
backSpan :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
button :HTMLButtonElement
Type:
- HTMLButtonElement
- Overrides:
- Source:
currentSelection :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
icon :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
menu :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
nameSpan :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
playbackRates_ :Map.<string, number>
Type:
- Map.<string, number>
- Source:
Methods
addButton_(iconText)
Parameters:
Name | Type | Description |
---|---|---|
iconText |
string |
- Overrides:
- Source:
addMenu_()
- Overrides:
- Source:
addPlaybackRates_()
- Source:
onButtonClick_()
- Overrides:
- Source:
updateLocalizedStrings_()
- Source:
updatePlaybackRateSelection_(rate)
Update checkmark icon and related class and attribute for the chosen rate
button.
Parameters:
Name | Type | Description |
---|---|---|
rate |
number | The video playback rate. |
- Source: