Constructor
new TouchOverlay(player, optionsopt)
Creates an instance of the this class.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
player |
Player | The |
|
options |
Object |
<optional> |
The key/value store of player options. |
- Source:
Extends
- Component
Methods
createEl() → {Element}
Builds the DOM element.
- Source:
Returns:
The DOM element.
- Type
- Element
disable()
Disables touch handler
- Source:
enable()
Enables touch handler
- Source:
handleDoubleTap(event)
Seeks by configured number of seconds if left or right part of video double tapped
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | The touch event |
- Source:
handleSingleTap(event)
Toggles display of play toggle
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | The touch event |
- Source:
handleTap(event)
Debounces to either handle a delayed single tap, or a double tap
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | The touch event |
- Source: