25#include <vdr/player.h>
26#include <vdr/plugin.h>
45static const char *
const DESCRIPTION = trNOOP(
"A software and GPU emulated HD device");
232 "PLAY Url\n" " Play the media from the given url.\n",
233 "DETA\n" " Detach the plugin.\n",
234 "ATTA\n" " Attach the plugin.\n",
235 "STAT\n" " Get attached/detached status.\n"
237 " DETACHED -> 911\n",
238 "PION\n" " Enable picture-in-picture.\n",
239 "PIOF\n" " Disable picture-in-picture.\n",
240 "PITO\n" " Toggle picture-in-picture.\n",
241 "PIPU\n" " Pip channel up.\n",
242 "PIPD\n" " Pip channel down.\n",
243 "PIPC\n" " Pip swap channels.\n",
244 "PIPS\n" " Pip switch main stream to pip channel and close pip.\n",
245 "PIIP\n" " Pip swap positions.\n",
270 if (!strcasecmp(command,
"PLAY")) {
271 LOGDEBUG2(
L_MEDIA,
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
277 if (!strcasecmp(command,
"DETA")) {
278 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
280 return "SoftHdDevice is already detached";
283 return "Detached SoftHdDevice";
285 if (!strcasecmp(command,
"ATTA")) {
286 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
288 return "SoftHdDevice is not detached";
291 return "Attached SoftHdDevice";
293 if (!strcasecmp(command,
"STAT")) {
294 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
297 return "SoftHdDevice is attached";
300 return "SoftHdDevice is detached";
306 if (!strcasecmp(command,
"PION")) {
307 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
309 return "Pip is already enabled";
312 return "Pip was enabled";
314 if (!strcasecmp(command,
"PIOF")) {
315 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
317 return "Pip isn't enabled";
320 return "Pip was disabled";
322 if (!strcasecmp(command,
"PITO")) {
323 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
326 return "Pip was enabled";
329 return "Pip was disabled";
332 if (!strcasecmp(command,
"PIPU")) {
333 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
335 return "Pip isn't enabled";
338 return "Pip channel up";
340 if (!strcasecmp(command,
"PIPD")) {
341 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
343 return "Pip isn't enabled";
346 return "Pip channel down";
348 if (!strcasecmp(command,
"PIPC")) {
349 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
351 return "Pip isn't enabled";
354 return "Pip swap channels";
356 if (!strcasecmp(command,
"PIPS")) {
357 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
359 return "Pip isn't enabled";
362 return "Pip switch main stream to pip channel and close pip";
364 if (!strcasecmp(command,
"PIPP")) {
365 LOGDEBUG(
"plugin: %s: SVDRPCommand: %s %s", __FUNCTION__, command, option);
367 return "Pip isn't enabled";
370 return "Pip swap position";
cPluginSoftHdDevice - SoftHdDevice plugin class
virtual void Stop(void)
Shutdown plugin.
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 SetupParse(const char *, const char *)
Parse setup parameters.
virtual cOsdObject * MainMenuAction(void)
Perform the action when selected from the main VDR menu.
virtual const char * Description(void)
Return plugin short description.
cPluginSoftHdDevice(void)
cPluginSoftHdDevice constructor
virtual bool Start(void)
Start any background activities the plugin shall perform.
virtual const char ** SVDRPHelpPages(void)
Return SVDRP commands help pages.
cSoftHdConfig * m_pConfig
pointer to cSoftHdConfig object
virtual ~cPluginSoftHdDevice(void)
cPluginSoftHdDevice destructor
virtual bool Initialize(void)
Initializes the DVB devices.
cSoftHdDevice * m_pDevice
pointer to cSoftHdDevice object
virtual bool ProcessArgs(int, char *[])
Process the command line arguments.
virtual const char * Version(void)
Return plugin version number.
virtual const char * MainMenuEntry(void)
Create main menu entry.
virtual cString SVDRPCommand(const char *, const char *, int &)
Handle SVDRP commands.
virtual bool Service(const char *, void *=nullptr)
Receive requests or messages.
bool SetupParse(const char *, const char *)
Parse setup parameters.
bool ConfigHideMainMenuEntry
config hide main menu entry
void Stop(void)
Called by VDR when the plugin is stopped.
void PipChannelSwap(bool)
void PipSwapPosition(void)
int Start(void)
Called by VDR when the plugin is started.
void Detach(void)
Detach the device.
const char * CommandLineHelp(void)
Return command line help string.
bool IsDetached(void) const
Returns true, if the device is detached.
bool PipIsEnabled(void)
Returns true, if pip is currently enabled.
int ProcessArgs(int, char *[])
Process the command line arguments.
void PipChannelChange(int)
void Attach(void)
Attach the device again.
SoftHdDevice config header file.
Logger class header file.
static const char *const DESCRIPTION
vdr-plugin description.
static const char * SVDRPHelpText[]
SVDRP commands help text.
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(cPluginSoftHdDevice)
Main plugin class header file.
Device class header file.