Class: shaka.ui.Overlay

Constructor

(export) new Overlay(playernon-null, videoContainernon-null, videonon-null)

Parameters:
Name Type Description
player shaka.Player
videoContainer HTMLElement
video HTMLMediaElement
Implements:
Source:

Members

(export, static) TrackLabelFormat :number

Describes what information should show up in labels for selecting audio variants and text tracks.
Type:
  • number
Properties:
Name Value Type Description
LANGUAGE 0 number
ROLE 1 number
LANGUAGE_ROLE 2 number
Source:

(private, non-null) config_ :shaka.extern.UIConfiguration

Type:
Source:

(private) controls_ :shaka.ui.Controls

Type:
Source:

(private) player_ :shaka.Player

Type:
Source:

Methods

(private, static) dispatchLoadedEvent_(eventName)

Parameters:
Name Type Description
eventName string
Source:

(private, static) scanPageForShakaElements_()

Source:

(private, static) setupUIandAutoLoad_(containernon-null, videonon-null)

Parameters:
Name Type Description
container Element
video Element
Source:

(export) 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.
Source:

(private) defaultConfig_() → (non-null) {shaka.extern.UIConfiguration}

Source:
Returns:
Type
shaka.extern.UIConfiguration

(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

(export) getConfiguration() → (non-null) {shaka.extern.UIConfiguration}

Source:
Returns:
Type
shaka.extern.UIConfiguration

(export) getControls() → {shaka.ui.Controls}

Source:
Returns:
Type
shaka.ui.Controls

(export) getPlayer() → {shaka.Player}

Deprecated:
  • Use getControls().getPlayer() instead.
Source:
Returns:
Type
shaka.Player

(export) isMobile() → {boolean}

Detects if this is a mobile platform, in case you want to choose a different UI configuration on mobile devices.
Source:
Returns:
Type
boolean

(export) setEnabled(enabled)

Enable or disable the custom controls.
Parameters:
Name Type Description
enabled boolean
Source: