Button to toggle menu's visibility.
Event that displays main menu when clicking in Settings button.
Event that hides Settings main menu when other events occur, such as play/pause media or when resizing the user's window.
HTML markup to display Settings options.
Storage of the initial state of the menu's markup.
Instance of OpenPlayer.
Collection of items associated with a specific menu item.
Add a new element and subelements to Setting's menu.
The subelements will be transformed in HTML output, and this will be cached via Settings.submenu element. A global event will be associated with the newly added elements.
The name of the Settings element.
Identifier to generate unique Settings' items and subitems.
It can represent a number or a string.
A collection of subitems.
A specific class to trigger events on submenu items.
Build Settings
default option: media speed levels
Create HTML and insert it into OpenPlayer's DOM.
This method must include its events setup.
Remove HTML associated to specific OpenPlayer's element.
This method must include the removal of its previously set events.
Events that will be triggered in Settings element:
controls.hide
is triggered)Generated using TypeDoc
Settings element.
This class creates a menu of options to manipulate media that cannot be placed in the main control necessarily (such as different captions associated with media, levels of speed to play media, etc.) This element is based on YouTube's Settings element.
Settings
PlayerComponent