![]() |
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <IPlayer.h>
Public Member Functions | |
IPlayer (IPlayerCallback &callback) | |
virtual | ~IPlayer ()=default |
virtual bool | Initialize (TiXmlElement *pConfig) |
virtual bool | OpenFile (const CFileItem &file, const CPlayerOptions &options) |
virtual bool | QueueNextFile (const CFileItem &file) |
virtual void | OnNothingToQueueNotify () |
virtual bool | CloseFile (bool reopen=false)=0 |
virtual bool | IsPlaying () const |
virtual bool | CanPause () |
virtual void | Pause ()=0 |
virtual bool | HasVideo () const =0 |
virtual bool | HasAudio () const =0 |
virtual bool | HasGame () const |
virtual bool | HasRDS () const |
virtual bool | IsPassthrough () const |
virtual bool | CanSeek () |
virtual void | Seek (bool bPlus=true, bool bLargeStep=false, bool bChapterOverride=false)=0 |
virtual bool | SeekScene (bool bPlus=true) |
virtual void | SeekPercentage (float fPercent=0) |
virtual float | GetCachePercentage () |
virtual void | SetMute (bool bOnOff) |
virtual void | SetVolume (float volume) |
virtual void | SetDynamicRangeCompression (long drc) |
virtual void | SetAVDelay (float fValue=0.0f) |
virtual float | GetAVDelay () |
virtual void | SetSubTitleDelay (float fValue=0.0f) |
virtual float | GetSubTitleDelay () |
virtual int | GetSubtitleCount () |
virtual int | GetSubtitle () |
virtual void | GetSubtitleStreamInfo (int index, SubtitleStreamInfo &info) |
virtual void | SetSubtitle (int iStream) |
virtual bool | GetSubtitleVisible () |
virtual void | SetSubtitleVisible (bool bVisible) |
virtual void | AddSubtitle (const std::string &strSubPath) |
Adds the subtitle(s) provided by the given file to the available player streams and actives the first of the added stream(s). E.g., vob subs can contain multiple streams. More... | |
virtual int | GetAudioStreamCount () |
virtual int | GetAudioStream () |
virtual void | SetAudioStream (int iStream) |
virtual void | GetAudioStreamInfo (int index, AudioStreamInfo &info) |
virtual int | GetVideoStream () const |
virtual int | GetVideoStreamCount () const |
virtual void | GetVideoStreamInfo (int streamId, VideoStreamInfo &info) |
virtual void | SetVideoStream (int iStream) |
virtual int | GetPrograms (std::vector< ProgramInfo > &programs) |
virtual void | SetProgram (int progId) |
virtual int | GetProgramsCount () |
virtual std::shared_ptr< TextCacheStruct_t > | GetTeletextCache () |
virtual void | LoadPage (int p, int sp, unsigned char *buffer) |
virtual std::string | GetRadioText (unsigned int line) |
virtual int | GetChapterCount () |
virtual int | GetChapter () |
virtual void | GetChapterName (std::string &strChapterName, int chapterIdx=-1) |
virtual int64_t | GetChapterPos (int chapterIdx=-1) |
virtual int | SeekChapter (int iChapter) |
virtual void | SeekTime (int64_t iTime=0) |
virtual bool | SeekTimeRelative (int64_t iTime) |
virtual void | SetTime (int64_t time) |
Sets the current time. This can be used for injecting the current time. This is not to be confused with a seek. It just can be used if endless streams contain multiple tracks in reality (like with airtunes) More... | |
virtual void | SetTotalTime (int64_t time) |
Set the total time in milliseconds this can be used for injecting the duration in case its not available in the underlaying decoder (airtunes for example) More... | |
virtual void | SetSpeed (float speed)=0 |
virtual void | SetTempo (float tempo) |
virtual bool | SupportsTempo () |
virtual void | FrameAdvance (int frames) |
virtual bool | IsCaching () const |
virtual int | GetCacheLevel () const |
virtual bool | IsInMenu () const |
virtual bool | HasMenu () const |
virtual void | DoAudioWork () |
virtual bool | OnAction (const CAction &action) |
virtual std::string | GetPlayerState () |
virtual bool | SetPlayerState (const std::string &state) |
virtual void | GetAudioCapabilities (std::vector< int > &audioCaps) |
virtual void | GetSubtitleCapabilities (std::vector< int > &subCaps) |
define the subtitle capabilities of the player More... | |
virtual void | Render (bool clear, uint32_t alpha=255, bool gui=true) |
hook into render loop of render thread More... | |
virtual void | FlushRenderer () |
virtual void | SetRenderViewMode (int mode, float zoom, float par, float shift, bool stretch) |
virtual float | GetRenderAspectRatio () |
virtual void | TriggerUpdateResolution () |
virtual bool | IsRenderingVideo () |
virtual bool | Supports (EINTERLACEMETHOD method) |
virtual EINTERLACEMETHOD | GetDeinterlacingMethodDefault () |
virtual bool | Supports (ESCALINGMETHOD method) |
virtual bool | Supports (ERENDERFEATURE feature) |
virtual unsigned int | RenderCaptureAlloc () |
virtual void | RenderCaptureRelease (unsigned int captureId) |
virtual void | RenderCapture (unsigned int captureId, unsigned int width, unsigned int height, int flags) |
virtual bool | RenderCaptureGetPixels (unsigned int captureId, unsigned int millis, uint8_t *buffer, unsigned int size) |
virtual CVideoSettings | GetVideoSettings () |
virtual void | SetVideoSettings (CVideoSettings &settings) |
virtual bool | HasGameAgent () |
Check if any players are playing a game. More... | |
Public Attributes | |
std::string | m_name |
std::string | m_type |
Protected Attributes | |
IPlayerCallback & | m_callback |
|
inlineexplicit |
|
virtualdefault |
|
inlinevirtual |
Adds the subtitle(s) provided by the given file to the available player streams and actives the first of the added stream(s). E.g., vob subs can contain multiple streams.
[in] | strSubPath | The full path of the subtitle file. |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in KODI::RETRO::CRetroPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, and CVideoPlayer.
Implemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
Reimplemented in CVideoPlayer.
Reimplemented in PAPlayer.
|
inlinevirtual |
Reimplemented in PAPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in PAPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in PAPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in PAPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in KODI::RETRO::CRetroPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer, and UPNP::CUPnPPlayer.
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, KODI::RETRO::CRetroPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
define the subtitle capabilities of the player
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
pure virtual |
Implemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in KODI::RETRO::CRetroPlayer.
|
inlinevirtual |
Check if any players are playing a game.
Reimplemented in KODI::RETRO::CRetroPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
pure virtual |
Implemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in KODI::RETRO::CRetroPlayer, and CVideoPlayer.
Reimplemented in CVideoPlayer.
Reimplemented in KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
|
pure virtual |
Implemented in CExternalPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, and UPNP::CUPnPPlayer.
Reimplemented in PAPlayer, and UPNP::CUPnPPlayer.
hook into render loop of render thread
Reimplemented in KODI::RETRO::CRetroPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
Reimplemented in CVideoPlayer.
|
pure virtual |
Implemented in CExternalPlayer, CVideoPlayer, UPNP::CUPnPPlayer, PAPlayer, and KODI::RETRO::CRetroPlayer.
Reimplemented in CVideoPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in KODI::RETRO::CRetroPlayer, UPNP::CUPnPPlayer, PAPlayer, CExternalPlayer, and CVideoPlayer.
Reimplemented in CVideoPlayer.
Reimplemented in CExternalPlayer, CVideoPlayer, PAPlayer, KODI::RETRO::CRetroPlayer, and UPNP::CUPnPPlayer.
Reimplemented in KODI::RETRO::CRetroPlayer, and CVideoPlayer.
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, and CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, PAPlayer, and CVideoPlayer.
Reimplemented in KODI::RETRO::CRetroPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, KODI::RETRO::CRetroPlayer, and CVideoPlayer.
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
pure virtual |
Implemented in CExternalPlayer, KODI::RETRO::CRetroPlayer, CVideoPlayer, PAPlayer, and UPNP::CUPnPPlayer.
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, and CVideoPlayer.
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
Sets the current time. This can be used for injecting the current time. This is not to be confused with a seek. It just can be used if endless streams contain multiple tracks in reality (like with airtunes)
Reimplemented in PAPlayer.
Set the total time in milliseconds this can be used for injecting the duration in case its not available in the underlaying decoder (airtunes for example)
Reimplemented in PAPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CExternalPlayer, PAPlayer, and UPNP::CUPnPPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
inlinevirtual |
Reimplemented in CVideoPlayer.
|
protected |
std::string IPlayer::m_name |
std::string IPlayer::m_type |