Constructor
new Overlay(playernon-null, videoContainernon-null, videonon-null)
Parameters:
Name | Type | Description |
---|---|---|
player |
shaka.Player | |
videoContainer |
HTMLElement | |
video |
HTMLMediaElement |
- Implements:
- Source:
Members
Methods
dispatchLoadedEvent_(eventName)
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string |
setupUIandAutoLoad_(containernon-null, videonon-null)
Parameters:
Name | Type | Description |
---|---|---|
container |
Element | |
video |
Element |
configure(config, valueopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
string | Object | This should either be a field name or an object following the form of shaka.extern.UIConfiguration, where you may omit any field you do not wish to change. | |
value |
* |
<optional> |
This should be provided if the previous parameter was a string field name. |
defaultConfig_() → {shaka.extern.UIConfiguration}
Returns:
destroy() → {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() → {shaka.extern.UIConfiguration}
Returns:
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