[vdr] Replay a recording and return to calling plugin?

Martin Prochnow martinprochnow at yahoo.de
Wed Jan 10 21:10:20 CET 2007


Hi Christian,

in my ExtRecMenu-Plugin i start a playback like this:

--------------------------------------------------------------------------- 
 
myReplayControl::SetRecording(recording->FileName(),recording->Title());
cControl::Shutdown(); // stop running playbacks
cControl::Launch(new myReplayControl); // start playback
return osEnd; // close plugin
--------------------------------------------------------------------------- 


myReplayControl is a derived class:

--------------------------------------------------------------------------- 

class myReplayControl:public cReplayControl
{
  public:
   eOSState ProcessKey(eKeys Key);
   ~myReplayControl();
};

myReplayControl::~myReplayControl()
{
  cRemote::CallPlugin("extrecmenu");
}

eOSState myReplayControl::ProcessKey(eKeys Key)
{
  if(Key==kBack)
   return osEnd;

  return cReplayControl::ProcessKey(Key);
}
--------------------------------------------------------------------------- 


If playback ends, ExtRecMenu is called.

Greets,
Martin




More information about the vdr mailing list