VideoPlayerView

Methods

(static) ReportPlayback(stateopt) → {void}

Report playback to server

Parameters:
Name Type Attributes Default Description
state string <optional>
"update"
Source:

(static) bufferCheck(msg) → {void}

Check the the buffering has not hung

Parameters:
Name Type Description
msg dynamic
Source:

(static) checkTimeToDisplayNextEpisode() → {void}

Checks if we need to display the Next Episode button

Source:

(static) hideNextEpisodeButton() → {void}

Runs hide Next Episode button animation and sets focus back to video

Source:

(static) init() → {void}

Source:

(static) loadCaption() → {void}

Set caption url to server subtitle track

Source:

(static) onAllowCaptionsChange() → {void}

Only setup captain items if captions are allowed

Source:

(static) onContentChange() → {void}

Event handler for when video content field changes

Source:

(static) onKeyEvent(key, press) → {boolean}

Parameters:
Name Type Description
key string
press boolean
Source:

(static) onNextEpisodeDataLoaded() → {void}

Source:

(static) onPlaybackErrorButtonSelected(msg) → {void}

Parameters:
Name Type Description
msg dynamic
Source:

(static) onPlaybackErrorDialogClosed(msg) → {void}

Parameters:
Name Type Description
msg dynamic
Source:

(static) onPositionChanged() → {void}

When Video Player state changes

Source:

(static) onState(msg) → {void}

When Video Player state changes

Parameters:
Name Type Description
msg dynamic
Source:

(static) onSubtitleChange() → {void}

Event handler for when selectedSubtitle changes

Source:

(static) onVideoContentLoaded() → {void}

Source:

(static) showNextEpisodeButton() → {void}

Runs Next Episode button animation and sets focus to button

Source:

(static) showPlaybackErrorDialog(errorMessage) → {void}

Parameters:
Name Type Description
errorMessage string
Source:

(static) toggleCaption() → {void}

Toggles visibility of custom subtitles and sets captionTask's player state

Source:

(static) updateCaption() → {void}

Removes old subtitle lines and adds new subtitle lines

Source:

(static) updateCount() → {void}

Update count down text

Source: