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> getCurrentChapterIndex()
-
getCurrentChapterIndex: Finds current chapter index
Returns:
- indicating index of current chapter within chapter data or 0 if chapter lookup fails
- Type
- integer
-
<static> handleChapterListAction()
-
handleChapterListAction: Handles action to show chapter list
Returns:
- Type
- void
-
<static> handleChapterSkipAction(action)
-
handleChapterSkipAction: Handles user command to skip chapters in playing video
Parameters:
Name Type Description action
string Returns:
- Type
- void
-
<static> handleHideAction(resume)
-
handleHideAction: Handles action to hide pause menu
Parameters:
Name Type Description resume
boolean controls whether or not to resume video playback when sub is called
Returns:
- Type
- void
-
<static> handleShowSubtitleMenuAction()
-
handleShowSubtitleMenuAction: Handles action to show subtitle selection menu
Returns:
- Type
- void
-
<static> handleShowVideoInfoPopupAction()
-
handleShowVideoInfoPopupAction: Handles action to show video info popup
Returns:
- Type
- void
-
<static> handleVideoPlayPauseAction()
-
handleVideoPlayPauseAction: Handles action to either play or pause the video content
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 caption 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> onPauseMenuAction()
-
onPauseMenuAction: Process action events from pause menu to their respective handlers
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> populateChapterMenu()
-
populateChapterMenu: ' Parse chapter data from API and appeand to chapter list menu
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