Replay a recording and return to calling plugin?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux