19#include <vdr/player.h>
20#include <vdr/plugin.h>
112 return " -a device\taudio device (e.g. alsa: hw:0,0)\n"
113 " -c channel\taudio mixer channel name (e.g. PCM)\n"
114 " -o device\tdrm device (e.g. /dev/dri/card0)\n"
115 " -d resolution\tdisplay resolution (e.g. 1920x1080@50)\n"
116 " -g resolution\tosd resolution (e.g. 1920x1080)\n"
117 " -D start in detached state\n"
118 " -w workaround\tenable/disable workarounds\n"
120 "\tdisable-ogl-osd disable openGL osd\n"
122 "\tdisable-pip disable picture-in-picture\n"
319 "PLAY Url\n" " Play the media from the given url.\n",
320 "DETA\n" " Detach the plugin.\n",
321 "ATTA\n" " Attach the plugin.\n",
322 "STAT\n" " Get attached/detached status.\n"
324 " DETACHED -> 911\n",
325 "PION\n" " Enable picture-in-picture.\n",
326 "PIOF\n" " Disable picture-in-picture.\n",
327 "PITO\n" " Toggle picture-in-picture.\n",
328 "PIPU\n" " Pip channel up.\n",
329 "PIPD\n" " Pip channel down.\n",
330 "PIPC\n" " Pip swap channels.\n",
331 "PIPS\n" " Pip switch main stream to pip channel and close pip.\n",
332 "PIIP\n" " Pip swap positions.\n",
367 return "DRMDevice is already detached";
370 return "Detached DRMDevice";
375 return "DRMDevice is not detached";
378 return "Attached DRMDevice";
384 return "DRMDevice is attached";
387 return "DRMDevice is detached";
396 return "Pip is already enabled";
399 return "Pip was enabled";
404 return "Pip isn't enabled";
407 return "Pip was disabled";
413 return "Pip was enabled";
416 return "Pip was disabled";
422 return "Pip isn't enabled";
425 return "Pip channel up";
430 return "Pip isn't enabled";
433 return "Pip channel down";
438 return "Pip isn't enabled";
441 return "Pip swap channels";
446 return "Pip isn't enabled";
449 return "Pip switch main stream to pip channel and close pip";
454 return "Pip isn't enabled";
457 return "Pip swap position";
const char * ConfigOsdResolution
osd resolution (syntax: "1920x1080")
sDrmMode UserSetDrmMode
user requested drm mode on the current connector
const char * ConfigDrmDevice
user requested drm device (e.g. "/dev/dri/card0")
const char * ConfigDisplayResolution
display resolution (syntax: "1920x1080@50")
bool ConfigHideMainMenuEntry
config hide main menu entry
const char * ConfigAudioMixerChannel
audio mixer channel name
const char * ConfigAudioPCMDevice
audio PCM device
const char * ConfigDrmConnector
user requested drm connector (e.g. "HDMI-A-1")
bool SetupParse(const char *, const char *)
Parse setup parameters.
Output Device Implementation.
void PipChannelChange(int)
void Detach(void)
Detach the device.
void Stop(void)
Called by VDR when the plugin is stopped.
void Attach(void)
Attach the device again.
bool Initialize(void)
Initialize the device.
void PipChannelSwap(bool)
bool PipIsEnabled(void)
Returns true, if pip is currently enabled.
bool IsDetached(void) const
Returns true, if the device is detached.
void SetDisableOglOsd(void)
Disables OpenGL/ES Osd (called from setup menu or conf)
void SetStartDetached(void)
void PipSwapPosition(void)
int Start(void)
Called by VDR when the plugin is started.
virtual bool Start(void)
Start any background activities the plugin shall perform.
virtual const char * Version(void)
Return plugin version number.
cPluginDrmDevice(void)
cPluginDrmDevice constructor
virtual cString SVDRPCommand(const char *, const char *, int &)
Handle SVDRP commands.
virtual bool SetupParse(const char *, const char *)
Parse setup parameters.
virtual const char * Description(void)
Return plugin short description.
cDeviceConfig * m_pConfig
pointer to cDeviceConfig object
virtual const char * CommandLineHelp(void)
Return a string that describes all known command line options.
virtual cMenuSetupPage * SetupMenu(void)
Return our setup menu.
virtual bool Initialize(void)
Initializes the DVB devices.
virtual ~cPluginDrmDevice(void)
cPluginDrmDevice destructor
virtual bool Service(const char *, void *=nullptr)
Receive requests or messages.
cOutputDevice * m_pDevice
pointer to cOutputDevice object
virtual const char ** SVDRPHelpPages(void)
Return SVDRP commands help pages.
virtual const char * MainMenuEntry(void)
Create main menu entry.
virtual bool ProcessArgs(int, char *[])
Process the command line arguments.
virtual void Stop(void)
Shutdown plugin.
virtual cOsdObject * MainMenuAction(void)
Perform the action when selected from the main VDR menu.
Plugin Configuration Header File.
Output Device Header File.
#define LOGDEBUG2
log to LOG_DEBUG and add a prefix
#define LOGDEBUG
log to LOG_DEBUG
@ L_MEDIA
mediaplayer logs
static const char *const DESCRIPTION
vdr-plugin description.
static const char * SVDRPHelpText[]
SVDRP commands help text.
static cDeviceMenu * pMenu
Main Menu Instance.
static const char *const MAINMENUENTRY
what is displayed in the main menu entry
static const char *const VERSION
vdr-plugin version number Makefile extracts the version number for generating the file name for the d...
VDRPLUGINCREATOR(cPluginDrmDevice)
Main Plugin Interface Header File.