Hi,
is there any way to start the replay of a recording in a plugin, so that after ending the replay, VDR returns to the calling plugin instead of the recordings menu?
My replay start looks like this:
cReplayControl::SetRecording(recording->FileName(), recording->Title()); return osReplay;
I played with a derived replay control, but found no solution yet.
Regards,
Christian
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