vdr-plugin-drmdevice 2.0.0-46418f1
cDrmDeviceControl Class Reference

Media Player Control. More...

#include <mediaplayer.h>

Public Member Functions

 cDrmDeviceControl (const char *, cOutputDevice *)
 Create a new control interface and corresponding player.
 
virtual ~cDrmDeviceControl ()
 
virtual void Hide (void)
 Close the replay OSD.
 
virtual eOSState ProcessKey (eKeys)
 Handle a key event.
 
void Close (void)
 

Static Public Member Functions

static cDrmDeviceControl * Control ()
 
static cDrmDevicePlayer * Player ()
 

Private Member Functions

void ShowProgress ()
 Open the replay OSD.
 

Private Attributes

cSkinDisplayReplay * m_pOsd = nullptr
 
cOutputDevice * m_pDevice
 
bool m_closing = false
 

Static Private Attributes

static cDrmDeviceControl * m_pControl = NULL
 Control instance.
 
static cDrmDevicePlayer * m_pPlayer = NULL
 

Detailed Description

Media Player Control.

Definition at line 105 of file mediaplayer.h.

Constructor & Destructor Documentation

◆ cDrmDeviceControl()

cDrmDeviceControl::cDrmDeviceControl ( const char *  url,
cOutputDevice *  device 
)

Create a new control interface and corresponding player.

Parameters
urlfile or playlist to be played
devicepointer to device

Definition at line 370 of file mediaplayer.cpp.

References m_pControl.

◆ ~cDrmDeviceControl()

cDrmDeviceControl::~cDrmDeviceControl ( )
virtual

Definition at line 377 of file mediaplayer.cpp.

References m_pControl, and m_pPlayer.

Member Function Documentation

◆ Close()

void cDrmDeviceControl::Close ( void  )
inline

Definition at line 114 of file mediaplayer.h.

References m_closing.

◆ Control()

static cDrmDeviceControl * cDrmDeviceControl::Control ( )
inlinestatic

◆ Hide()

void cDrmDeviceControl::Hide ( void  )
virtual

Close the replay OSD.

Definition at line 387 of file mediaplayer.cpp.

References L_MEDIA, LOGDEBUG2, and m_pOsd.

Referenced by ProcessKey().

◆ Player()

static cDrmDevicePlayer * cDrmDeviceControl::Player ( )
inlinestatic

Definition at line 113 of file mediaplayer.h.

References m_pPlayer.

◆ ProcessKey()

eOSState cDrmDeviceControl::ProcessKey ( eKeys  key)
virtual

Handle a key event.

Parameters
keypressed key

Definition at line 419 of file mediaplayer.cpp.

References cOutputDevice::Freeze(), Hide(), m_closing, m_pDevice, m_pOsd, m_pPlayer, cOutputDevice::Play(), and ShowProgress().

◆ ShowProgress()

void cDrmDeviceControl::ShowProgress ( void  )
private

Open the replay OSD.

Definition at line 399 of file mediaplayer.cpp.

References L_MEDIA, LOGDEBUG2, m_pOsd, and m_pPlayer.

Referenced by ProcessKey().

Member Data Documentation

◆ m_closing

bool cDrmDeviceControl::m_closing = false
private

Definition at line 123 of file mediaplayer.h.

Referenced by Close(), and ProcessKey().

◆ m_pDevice

cOutputDevice* cDrmDeviceControl::m_pDevice
private

Definition at line 122 of file mediaplayer.h.

Referenced by ProcessKey().

◆ m_pOsd

cSkinDisplayReplay* cDrmDeviceControl::m_pOsd = nullptr
private

Definition at line 121 of file mediaplayer.h.

Referenced by Hide(), ProcessKey(), and ShowProgress().


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