Constructor
new QueueButton(parentnon-null, controlsnon-null)
Parameters:
| Name | Type | Description |
|---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Classes
Members
backButton :HTMLButtonElement
Type:
- HTMLButtonElement
- Overrides:
- Implements:
- Source:
backSpan :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
button :HTMLButtonElement
Type:
- HTMLButtonElement
- Overrides:
- Implements:
- Source:
currentSelection :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
isMenuOpened_ :boolean
Type:
- boolean
- Overrides:
- Source:
isSubMenu :boolean
Type:
- boolean
- Overrides:
- Implements:
- Source:
isSubMenuOpened :boolean
Type:
- boolean
- Overrides:
- Implements:
- Source:
menu :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
menuMutationObserver_ :MutationObserver
Type:
- MutationObserver
- Overrides:
- Source:
mutationObserver_ :MutationObserver
Type:
- MutationObserver
- Overrides:
- Source:
nameSpan :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Implements:
- Source:
resizeObserver_ :ResizeObserver
Type:
- ResizeObserver
- Overrides:
- Source:
resizeRafId_ :number
Type:
- number
- Overrides:
- Source:
videoContainer_ :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
Methods
addButton_(iconText)
Parameters:
| Name | Type | Description |
|---|---|---|
iconText |
shaka.extern.UIIcon | string |
- Overrides:
- Source:
addMenu_()
- Overrides:
- Source:
adjustMenuStyle(menuElementnon-null, buttonElementnon-null, controlsContainernon-null)
Shared positioning algorithm used by both OverflowMenu and SettingsMenu.
Computes:
- maxHeight so the menu does not overflow the video container vertically.
- left/right offset so the menu stays within the controls bar
horizontally, aligned with the button that opened it.
Parameters:
| Name | Type | Description |
|---|---|---|
menuElement |
HTMLElement | The floating menu div to position. |
buttonElement |
HTMLElement | The button that triggered the menu. |
controlsContainer |
HTMLElement | The bottom controls bar used as the horizontal reference. |
- Overrides:
- Source:
getDisplayableItems_() → {Array<shaka.extern.QueueItem>}
Returns only those queue items that have enough metadata to be worth
showing (at minimum a title).
- Source:
Returns:
- Type
- Array<shaka.extern.QueueItem>
inOverflowMenu_()
- Overrides:
- Source:
notifyMenuClose_()
- Overrides:
- Source:
notifyMenuOpen_()
- Overrides:
- Source:
onButtonClick_()
- Overrides:
- Source:
onMenuClose()
- Overrides:
- Source:
onMenuOpen()
- Overrides:
- Source:
updateCurrentItem_()
- Source:
updateQueueItems_()
Rebuilds the full submenu list from scratch.
Only called when items are inserted or removed.
- Source: