Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XBMCAddon::xbmc::Player Class Reference

#include <Player.h>

Inheritance diagram for XBMCAddon::xbmc::Player:
XBMCAddon::AddonCallback IPlayerCallback XBMCAddon::AddonClass

Public Member Functions

 play (...)
 

Function: play([item, listitem, windowed, startpos])


Play an item.
 
 stop ()
 

Function: stop()


Stop playing.
 
 pause ()
 

Function: pause()


Pause or resume playing if already paused.
 
 playnext ()
 

Function: playnext()


Play next item in playlist.
 
 playprevious ()
 

Function: playprevious()


Play previous item in playlist.
 
 playselected (...)
 

Function: playselected(selected)


Play a certain item from the current playlist.
 
 onPlayBackStarted ()
 

Function: onPlayBackStarted()


onPlayBackStarted method.
 
 onAVStarted ()
 

Function: onAVStarted()


onAVStarted method.
 
 onAVChange ()
 

Function: onAVChange()


onAVChange method.
 
 onPlayBackEnded ()
 

Function: onPlayBackEnded()


onPlayBackEnded method.
 
 onPlayBackStopped ()
 

Function: onPlayBackStopped()


onPlayBackStopped method.
 
 onPlayBackError ()
 

Function: onPlayBackError()


onPlayBackError method.
 
 onPlayBackPaused ()
 

Function: onPlayBackPaused()


onPlayBackPaused method.
 
 onPlayBackResumed ()
 

Function: onPlayBackResumed()


onPlayBackResumed method.
 
 onQueueNextItem ()
 

Function: onQueueNextItem()


onQueueNextItem method.
 
 onPlayBackSpeedChanged (int speed)
 

Function: onPlayBackSpeedChanged(speed)


onPlayBackSpeedChanged method.
 
 onPlayBackSeek (...)
 

Function: onPlayBackSeek(time, seekOffset)


onPlayBackSeek method.
 
 onPlayBackSeekChapter (...)
 

Function: onPlayBackSeekChapter(chapter)


onPlayBackSeekChapter method.
 
 isPlaying ()
 

Function: isPlaying()


Check Kodi is playing something.
 
 isPlayingAudio ()
 

Function: isPlayingAudio()


Check for playing audio.
 
 isPlayingVideo ()
 

Function: isPlayingVideo()


Check for playing video.
 
 isPlayingRDS ()
 

Function: isPlayingRDS()


Check for playing radio data system (RDS).
 
 isPlayingGame ()
 

Function: isPlayingGame()


Check for playing game.
 
 isExternalPlayer ()
 

Function: isExternalPlayer()


Check for external player.
 
 getPlayingFile ()
 

Function: getPlayingFile()


Returns the current playing file as a string.
 
 getPlayingItem ()
 

Function: getPlayingItem()


Returns the current playing item.
 
 getTime ()
 

Function: getTime()


Get playing time.
 
 seekTime (...)
 

Function: seekTime(seekTime)


Seek time.
 
 setSubtitles (...)
 

Function: setSubtitles(subtitleFile)


Set subtitle file and enable subtitles.
 
 showSubtitles (...)
 

Function: showSubtitles(visible)


Enable / disable subtitles.
 
 getSubtitles ()
 

Function: getSubtitles()


Get subtitle stream name.
 
 getAvailableSubtitleStreams ()
 

Function: getAvailableSubtitleStreams()


Get Subtitle stream names.
 
 setSubtitleStream (...)
 

Function: setSubtitleStream(stream)


Set Subtitle Stream.
 
 updateInfoTag ()
 

Function: updateInfoTag(item)


Update info labels for currently playing item.
 
 getGameInfoTag ()
 

Function: getGameInfoTag()


To get game info tag.
 
 getVideoInfoTag ()
 

Function: getVideoInfoTag()


To get video info tag.
 
 getMusicInfoTag ()
 

Function: getMusicInfoTag()


To get music info tag.
 
 getRadioRDSInfoTag ()
 

Function: getRadioRDSInfoTag()


To get Radio RDS info tag
 
 getTotalTime ()
 

Function: getTotalTime()


To get total playing time.
 
 getAvailableAudioStreams ()
 

Function: getAvailableAudioStreams()


Get Audio stream names
 
 setAudioStream (...)
 

Function: setAudioStream(stream)


Set Audio Stream.
 
 getAvailableVideoStreams ()
 

Function: getAvailableVideoStreams()


Get Video stream names
 
 setVideoStream (...)
 

Function: setVideoStream(stream)


Set Video Stream.
 
- Public Member Functions inherited from XBMCAddon::AddonCallback
 ~AddonCallback () override
 
void setHandler (CallbackHandler *_handler)
 
void invokeCallback (Callback *callback)
 
- Public Member Functions inherited from XBMCAddon::AddonClass
 AddonClass ()
 
virtual ~AddonClass ()
 
const char * GetClassname () const
 
LanguageHookGetLanguageHook ()
 
bool isDeallocating ()
 
void Release () const
 
void Acquire () const
 
- Public Member Functions inherited from IPlayerCallback
virtual ~IPlayerCallback ()=default
 
virtual void OnPlayBackEnded ()=0
 
virtual void OnPlayBackStarted (const CFileItem &file)=0
 
virtual void OnPlayerCloseFile (const CFileItem &file, const CBookmark &bookmark)
 
virtual void OnPlayBackPaused ()
 
virtual void OnPlayBackResumed ()
 
virtual void OnPlayBackStopped ()=0
 
virtual void OnPlayBackError ()=0
 
virtual void OnQueueNextItem ()=0
 
virtual void OnPlayBackSeek (int64_t iTime, int64_t seekOffset)
 
virtual void OnPlayBackSeekChapter (int iChapter)
 
virtual void OnPlayBackSpeedChanged (int iSpeed)
 
virtual void OnAVChange ()
 
virtual void OnAVStarted (const CFileItem &file)
 
virtual void RequestVideoSettings (const CFileItem &fileItem)
 
virtual void StoreVideoSettings (const CFileItem &fileItem, const CVideoSettings &vs)
 

Additional Inherited Members

- Static Public Member Functions inherited from XBMCAddon::AddonClass
static short getNumAddonClasses ()
 
- Protected Member Functions inherited from XBMCAddon::AddonCallback
bool hasHandler ()
 
 AddonCallback ()
 
- Protected Member Functions inherited from XBMCAddon::AddonClass
virtual void deallocating ()
 
- Static Protected Member Functions inherited from XBMCAddon::AddonClass
static short getNextClassIndex ()
 
- Protected Attributes inherited from XBMCAddon::AddonCallback
AddonClass::Ref< CallbackHandlerhandler
 
- Protected Attributes inherited from XBMCAddon::AddonClass
LanguageHooklanguageHook
 

The documentation for this class was generated from the following files: