Methods
(static) ReportPlayback(stateopt) → {void}
Report playback to server
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
state |
string |
<optional> |
"update" |
(static) bufferCheck(msg) → {void}
Check the the buffering has not hung
Parameters:
Name | Type | Description |
---|---|---|
msg |
dynamic |
(static) checkTimeToDisplayNextEpisode() → {void}
Checks if we need to display the Next Episode button
(static) hideNextEpisodeButton() → {void}
Runs hide Next Episode button animation and sets focus back to video
(static) init() → {void}
(static) loadCaption() → {void}
Set caption url to server subtitle track
(static) onAllowCaptionsChange() → {void}
Only setup captain items if captions are allowed
(static) onContentChange() → {void}
Event handler for when video content field changes
(static) onKeyEvent(key, press) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
key |
string | |
press |
boolean |
(static) onNextEpisodeDataLoaded() → {void}
(static) onPlaybackErrorButtonSelected(msg) → {void}
Parameters:
Name | Type | Description |
---|---|---|
msg |
dynamic |
(static) onPlaybackErrorDialogClosed(msg) → {void}
Parameters:
Name | Type | Description |
---|---|---|
msg |
dynamic |
(static) onPositionChanged() → {void}
When Video Player state changes
(static) onState(msg) → {void}
When Video Player state changes
Parameters:
Name | Type | Description |
---|---|---|
msg |
dynamic |
(static) onSubtitleChange() → {void}
Event handler for when selectedSubtitle changes
(static) onVideoContentLoaded() → {void}
(static) showNextEpisodeButton() → {void}
Runs Next Episode button animation and sets focus to button
(static) showPlaybackErrorDialog(errorMessage) → {void}
Parameters:
Name | Type | Description |
---|---|---|
errorMessage |
string |
(static) toggleCaption() → {void}
Toggles visibility of custom subtitles and sets captionTask's player state
(static) updateCaption() → {void}
Removes old subtitle lines and adds new subtitle lines
(static) updateCount() → {void}
Update count down text