[vdr] mplayer w/ softdevice

Udo Richter udo_richter at gmx.de
Fri Nov 4 17:59:39 CET 2005


Klaus Schmidinger wrote:
>> Thats a limitation of VDR's plugin system. A plugin cannot open a menu
>> from replay mode or other situations, the only way to open a plugin
>> menu is from the main menu.
> 
> Since version 1.3.32 a plugin can have its main menu function
> called through cRemote::CallPlugin().

Yes, already realized that. So if you want to open a menu, you can trick
cRemote to send the plugin pseudo-key, let the main loop call the main
menu action, catch that, and initiate a custom menu instead of the
default menu. Talk about straight forward. ;) At least its more straight
forward than calling SVDRP. :D

If some other plugin decides to do the same thing just a moment later,
the call is skipped, so maybe its a good idea to watch for a timeout
between CallPlugin() and MainMenuAction().

And of course there's that nasty problem of plugins loaded twice with
the same name, in which case the MainMenuAction of the first loaded
plugin will get all the calls. ;)

Cheers,

Udo

PS: Sorry for being such a PITA...



More information about the vdr mailing list