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