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

2007-01-10 Thread Christian Wieninger
Hi Martin,

Thanks! Works great!

Regards,

Christian


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


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

2007-01-10 Thread Martin Prochnow

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


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

2007-01-10 Thread Christian Wieninger
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


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