Callback functions.
Functions to handle control callbacks from Kodi to Add-On.
Go back to normal functions from player
onPlayBackStarted | ( | ) |
Function: onPlayBackStarted()
Will be called when Kodi player starts. Video or audio might not be available at this point.
onAVStarted | ( | ) |
Function: onAVStarted()
Will be called when Kodi has a video or audiostream.
onAVChange | ( | ) |
Function: onAVChange()
Will be called when Kodi has a video, audio or subtitle stream. Also happens when the stream changes.
onPlayBackEnded | ( | ) |
Function: onPlayBackEnded()
Will be called when Kodi stops playing a file.
onPlayBackStopped | ( | ) |
Function: onPlayBackStopped()
Will be called when user stops Kodi playing a file.
onPlayBackError | ( | ) |
Function: onPlayBackError()
Will be called when playback stops due to an error.
onPlayBackPaused | ( | ) |
Function: onPlayBackPaused()
Will be called when user pauses a playing file.
onPlayBackResumed | ( | ) |
Function: onPlayBackResumed()
Will be called when user resumes a paused file.
onQueueNextItem | ( | ) |
Function: onQueueNextItem()
Will be called when user queues the next item.
onPlayBackSpeedChanged | ( | int | speed | ) |
Function: onPlayBackSpeedChanged(speed)
Will be called when players speed changes (eg. user FF/RW).
speed | [integer] Current speed of player |
onPlayBackSeek | ( | ... | ) |
Function: onPlayBackSeek(time, seekOffset)
Will be called when user seeks to a time.
time | [integer] Time to seek to |
seekOffset | [integer] ? |
onPlayBackSeekChapter | ( | ... | ) |
Function: onPlayBackSeekChapter(chapter)
Will be called when user performs a chapter seek.
chapter | [integer] Chapter to seek to |