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

#include <UPnPPlayer.h>

Inheritance diagram for UPNP::CUPnPPlayer:
IPlayer CThread

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 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
bool OnAction (const CAction &action) override
int PlayFile (const CFileItem &file, const CPlayerOptions &options, 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 () const
virtual bool HasGame () const
virtual bool HasRDS () const
virtual bool HasID3 () const
virtual bool IsPassthrough () const
virtual bool CanSeek () const
virtual bool SeekScene (Direction seekDirection)
virtual float GetCachePercentage () const
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 () const
virtual int GetSubtitle ()
virtual void GetSubtitleStreamInfo (int index, SubtitleStreamInfo &info) const
virtual void SetSubtitle (int iStream)
virtual bool GetSubtitleVisible () const
virtual void SetSubtitleVisible (bool bVisible)
virtual void SetSubtitleVerticalPosition (int value, bool save)
 Set the subtitle vertical position, it depends on current screen resolution.
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.
virtual int GetAudioStreamCount () const
virtual int GetAudioStream ()
virtual void SetAudioStream (int iStream)
virtual void GetAudioStreamInfo (int index, AudioStreamInfo &info) const
virtual int GetVideoStream () const
virtual int GetVideoStreamCount () const
virtual void GetVideoStreamInfo (int streamId, VideoStreamInfo &info) const
virtual void SetVideoStream (int iStream)
virtual int GetPrograms (std::vector< ProgramInfo > &programs)
virtual void SetProgram (int progId)
virtual int GetProgramsCount () const
virtual bool HasTeletextCache () const
virtual std::shared_ptr< TextCacheStruct_tGetTeletextCache ()
virtual void LoadPage (int p, int sp, unsigned char *buffer)
virtual int GetChapterCount () const
virtual int GetChapter () const
virtual void GetChapterName (std::string &strChapterName, int chapterIdx=-1) const
virtual int64_t GetChapterPos (int chapterIdx=-1) const
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)
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)
virtual void SetTempo (float tempo)
virtual bool SupportsTempo () const
virtual void FrameAdvance (int frames)
virtual bool IsInMenu () const
virtual MenuType GetSupportedMenuType () const
 Get the supported menu type.
virtual std::string GetPlayerState ()
virtual bool SetPlayerState (const std::string &state)
virtual void GetAudioCapabilities (std::vector< int > &audioCaps) const
virtual void GetSubtitleCapabilities (std::vector< int > &subCaps) const
 define the subtitle capabilities of the player
virtual void Render (bool clear, uint32_t alpha=255, bool gui=true)
 hook into render loop of render thread
virtual void FlushRenderer ()
virtual void SetRenderViewMode (int mode, float zoom, float par, float shift, bool stretch)
virtual float GetRenderAspectRatio () const
virtual void TriggerUpdateResolution ()
virtual bool IsRenderingVideo () const
virtual void GetRects (CRect &source, CRect &dest, CRect &view) const
virtual unsigned int GetOrientation () const
virtual bool Supports (EINTERLACEMETHOD method) const
virtual EINTERLACEMETHOD GetDeinterlacingMethodDefault () const
virtual bool Supports (ESCALINGMETHOD method) const
virtual bool Supports (ERENDERFEATURE feature) const
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 () const
virtual void SetVideoSettings (CVideoSettings &settings)
virtual bool HasGameAgent () const
 Check if any players are playing a game.
- Public Member Functions inherited from CThread
 CThread (IRunnable *pRunnable, const char *ThreadName)
virtual ~CThread ()
void Create (bool bAutoDelete=false)
template<typename Rep , typename Period >
void Sleep (std::chrono::duration< Rep, Period > duration)
bool IsAutoDelete () const
virtual void StopThread (bool bWait=true)
bool IsRunning () const
bool IsCurrentThread () const
bool Join (std::chrono::milliseconds duration)
bool SetPriority (const ThreadPriority &priority)
 Set the threads priority. This uses the platforms native threading library to do so.
virtual void OnException ()

Additional Inherited Members

- Static Public Member Functions inherited from CThread
static const std::thread::id GetCurrentThreadId ()
static CThreadGetCurrentThread ()
- Public Attributes inherited from IPlayer
std::string m_name
std::string m_type
- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
virtual void OnStartup ()
WaitResponse AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1))
- Protected Attributes inherited from IPlayer
- Protected Attributes inherited from CThread
std::atomic< boolm_bStop

Constructor & Destructor Documentation

◆ CUPnPPlayer()

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

◆ ~CUPnPPlayer()

UPNP::CUPnPPlayer::~CUPnPPlayer ( )

Member Function Documentation

◆ CloseFile()

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

Implements IPlayer.

◆ GetCacheLevel()

int UPNP::CUPnPPlayer::GetCacheLevel ( ) const

Reimplemented from IPlayer.

◆ HasAudio()

bool UPNP::CUPnPPlayer::HasAudio ( ) const

Implements IPlayer.

◆ HasVideo()

bool UPNP::CUPnPPlayer::HasVideo ( ) const

Implements IPlayer.

◆ IsCaching()

bool UPNP::CUPnPPlayer::IsCaching ( ) const

Reimplemented from IPlayer.

◆ IsPlaying()

bool UPNP::CUPnPPlayer::IsPlaying ( ) const

Reimplemented from IPlayer.

◆ OnAction()

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

Reimplemented from IPlayer.

◆ OpenFile()

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

Reimplemented from IPlayer.

◆ Pause()

void UPNP::CUPnPPlayer::Pause ( )

Implements IPlayer.

◆ PlayFile()

int UPNP::CUPnPPlayer::PlayFile ( const CFileItem & file,
const CPlayerOptions & options,
XbmcThreads::EndTime<> & timeout )

◆ QueueNextFile()

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

Reimplemented from IPlayer.

◆ Seek()

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

Implements IPlayer.

◆ SeekChapter()

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

Reimplemented from IPlayer.

◆ SeekPercentage()

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

Reimplemented from IPlayer.

◆ SeekTime()

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

Reimplemented from IPlayer.

◆ SetSpeed()

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

Implements IPlayer.

◆ SetVolume()

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

Reimplemented from IPlayer.

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