Constructor
(export) new Overlay(playernon-null, videoContainernon-null, videonon-null)
Parameters:
Name | Type | Description |
---|---|---|
player |
shaka.Player | |
videoContainer |
HTMLElement | |
video |
HTMLMediaElement |
- Implements:
- Source:
Members
(private, non-null) config_ :shaka.extern.UIConfiguration
Type:
Methods
(private, static) createUI_(containernon-null, videonon-null) → (non-null) {shaka.ui.Overlay}
Parameters:
Name | Type | Description |
---|---|---|
container |
HTMLElement | |
video |
HTMLMediaElement |
Returns:
- Type
- shaka.ui.Overlay
(private, static) dispatchLoadedEvent_(eventName)
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string |
(export) configure(confignon-null)
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | This should follow the form of shaka.extern.UIConfiguration, but you may omit any field you do not wish to change. |
(private) defaultConfig_() → (non-null) {shaka.extern.UIConfiguration}
Returns:
(export) destroy() → (non-null) {Promise}
Request that this object be destroyed, releasing all resources and shutting
down all operations. Returns a Promise which is resolved when destruction
is complete. This Promise should never be rejected.
- Implements:
- Source:
Returns:
- Type
- Promise
getConfiguration() → (non-null) {shaka.extern.UIConfiguration}
Returns:
(export) isMobile() → {boolean}
Detects if this is a mobile platform, in case you want to choose a different
UI configuration on mobile devices.
Returns:
- Type
- boolean