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


_______________________________________________
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Reply via email to