Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
UPNP::CUPnPPlayer Class Reference

#include <UPnPPlayer.h>

Inheritance diagram for UPNP::CUPnPPlayer:
IPlayer IRenderLoop

Public Member Functions

 CUPnPPlayer (IPlayerCallback &callback, const char *uuid)
 
 ~CUPnPPlayer () override
 
bool OpenFile (const CFileItem &file, const CPlayerOptions &options) override
 
bool QueueNextFile (const CFileItem &file) override
 
bool CloseFile (bool reopen=false) override
 
bool IsPlaying () const override
 
void Pause () override
 
bool HasVideo () const override
 
bool HasAudio () const override
 
void Seek (bool bPlus, bool bLargeStep, bool bChapterOverride) override
 
void SeekPercentage (float fPercent=0) override
 
void SetVolume (float volume) override
 
int GetChapterCount () override
 
int GetChapter () override
 
void GetChapterName (std::string &strChapterName, int chapterIdx=-1) override
 
int SeekChapter (int iChapter) override
 
void SeekTime (int64_t iTime=0) override
 
void SetSpeed (float speed=0) override
 
bool IsCaching () const override
 
int GetCacheLevel () const override
 
void DoAudioWork () override
 
bool OnAction (const CAction &action) override
 
void FrameMove () override
 
int PlayFile (const CFileItem &file, const CPlayerOptions &options, CGUIDialogBusy *&dialog, XbmcThreads::EndTime &timeout)
 
- Public Member Functions inherited from IPlayer
 IPlayer (IPlayerCallback &callback)
 
virtual ~IPlayer ()=default
 
virtual bool Initialize (TiXmlElement *pConfig)
 
virtual void OnNothingToQueueNotify ()
 
virtual bool CanPause ()
 
virtual bool HasGame () const
 
virtual bool HasRDS () const
 
virtual bool IsPassthrough () const
 
virtual bool CanSeek ()
 
virtual bool SeekScene (bool bPlus=true)
 
virtual float GetCachePercentage ()
 
virtual void SetMute (bool bOnOff)
 
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_tGetTeletextCache ()
 
virtual void LoadPage (int p, int sp, unsigned char *buffer)
 
virtual std::string GetRadioText (unsigned int line)
 
virtual int64_t GetChapterPos (int chapterIdx=-1)
 
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 SetTempo (float tempo)
 
virtual bool SupportsTempo ()
 
virtual void FrameAdvance (int frames)
 
virtual bool IsInMenu () const
 
virtual bool HasMenu () const
 
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)
 

Additional Inherited Members

- Public Attributes inherited from IPlayer
std::string m_name
 
std::string m_type
 
- Protected Attributes inherited from IPlayer
IPlayerCallbackm_callback
 

Constructor & Destructor Documentation

§ CUPnPPlayer()

UPNP::CUPnPPlayer::CUPnPPlayer ( IPlayerCallback callback,
const char *  uuid 
)

§ ~CUPnPPlayer()

UPNP::CUPnPPlayer::~CUPnPPlayer ( )
override

Member Function Documentation

§ CloseFile()

bool UPNP::CUPnPPlayer::CloseFile ( bool  reopen = false)
overridevirtual

Implements IPlayer.

§ DoAudioWork()

void UPNP::CUPnPPlayer::DoAudioWork ( )
overridevirtual

Reimplemented from IPlayer.

§ FrameMove()

void UPNP::CUPnPPlayer::FrameMove ( )
overridevirtual

Implements IRenderLoop.

§ GetCacheLevel()

int UPNP::CUPnPPlayer::GetCacheLevel ( ) const
inlineoverridevirtual

Reimplemented from IPlayer.

§ GetChapter()

int UPNP::CUPnPPlayer::GetChapter ( )
inlineoverridevirtual

Reimplemented from IPlayer.

§ GetChapterCount()

int UPNP::CUPnPPlayer::GetChapterCount ( )
inlineoverridevirtual

Reimplemented from IPlayer.

§ GetChapterName()

void UPNP::CUPnPPlayer::GetChapterName ( std::string &  strChapterName,
int  chapterIdx = -1 
)
inlineoverridevirtual

Reimplemented from IPlayer.

§ HasAudio()

bool UPNP::CUPnPPlayer::HasAudio ( ) const
inlineoverridevirtual

Implements IPlayer.

§ HasVideo()

bool UPNP::CUPnPPlayer::HasVideo ( ) const
inlineoverridevirtual

Implements IPlayer.

§ IsCaching()

bool UPNP::CUPnPPlayer::IsCaching ( ) const
inlineoverridevirtual

Reimplemented from IPlayer.

§ IsPlaying()

bool UPNP::CUPnPPlayer::IsPlaying ( ) const
overridevirtual

Reimplemented from IPlayer.

§ OnAction()

bool UPNP::CUPnPPlayer::OnAction ( const CAction action)
overridevirtual

Reimplemented from IPlayer.

§ OpenFile()

bool UPNP::CUPnPPlayer::OpenFile ( const CFileItem file,
const CPlayerOptions options 
)
overridevirtual

Reimplemented from IPlayer.

§ Pause()

void UPNP::CUPnPPlayer::Pause ( )
overridevirtual

Implements IPlayer.

§ PlayFile()

int UPNP::CUPnPPlayer::PlayFile ( const CFileItem file,
const CPlayerOptions options,
CGUIDialogBusy *&  dialog,
XbmcThreads::EndTime timeout 
)

§ QueueNextFile()

bool UPNP::CUPnPPlayer::QueueNextFile ( const CFileItem file)
overridevirtual

Reimplemented from IPlayer.

§ Seek()

void UPNP::CUPnPPlayer::Seek ( bool  bPlus,
bool  bLargeStep,
bool  bChapterOverride 
)
overridevirtual

Implements IPlayer.

§ SeekChapter()

int UPNP::CUPnPPlayer::SeekChapter ( int  iChapter)
inlineoverridevirtual

Reimplemented from IPlayer.

§ SeekPercentage()

void UPNP::CUPnPPlayer::SeekPercentage ( float  fPercent = 0)
overridevirtual

Reimplemented from IPlayer.

§ SeekTime()

void UPNP::CUPnPPlayer::SeekTime ( int64_t  iTime = 0)
overridevirtual

Reimplemented from IPlayer.

§ SetSpeed()

void UPNP::CUPnPPlayer::SetSpeed ( float  speed = 0)
overridevirtual

Implements IPlayer.

§ SetVolume()

void UPNP::CUPnPPlayer::SetVolume ( float  volume)
overridevirtual

Reimplemented from IPlayer.


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