Members
(static, constant) UiEventType :string
UI event types.
Properties:
Name | Value | Type | Description |
---|---|---|---|
UI_RESUMED |
uiResumed | string | |
UI_PAUSED |
uiPaused | string | |
UI_VOLUME_MUTED |
uiVolumeMuted | string | |
UI_VOLUME_CHANGED |
uiVolumeChanged | string | |
UI_LOOP_CHANGED |
uiLoopChanged | string | |
UI_PLAYBACK_RATE_CHANGED |
uiPlaybackRateChanged | string | |
UI_QUALITY_LEVEL_CHANGED |
uiQualityLevelChanged | string | |
UI_AUDIO_CHANGED |
uiAudioChanged | string | |
UI_SUBTITLE_CHANGED |
uiSubtitleChanged | string | |
UI_PIP_CHANGED |
uiPipChanged | string | |
UI_FULLSCREEN_CHANGE |
uiFullscreenChange | string | |
UI_TOGGLE_STEREOSCOPIC_MODE |
uiToggleStereoscopicMode | string | |
UI_PLAYLIST_STREAM_CHANGED |
uiPlaylistStreamChanged | string | |
UI_FORWARD |
uiForward | string | |
UI_REWIND |
uiRewind | string |
Methods
addEventListener(type, listener)
Add an event listener to this object.
Parameters:
Name | Type | Description |
---|---|---|
type |
string | The event type to listen for. |
listener |
EventListener | function | The callback or listener object to invoke. |
hideUI()
Hide the UI.
listenToAllEvents(listener)
Add an event listener to this object that is invoked for all events types the object fires.
Parameters:
Name | Type | Description |
---|---|---|
listener |
EventListener | function | The callback or listener object to invoke. |
removeEventListener(type, listener)
Remove an event listener from this object.
Parameters:
Name | Type | Description |
---|---|---|
type |
string | The event type for which you wish to remove a listener. |
listener |
EventListener | function | The callback or listener object to remove. |
showUI()
Show the UI.