mhwlng
August 4th, 2007, 03:56 AM
Hi Rob,
I added 3 public functions to PanelWatch.lua :
RegisterLeavePanelWatch
UnregisterLeavePanelWatch
ProcessPanelWatchLeavePanel
RegisterPanelWatch("*", "NOWPLAYING", Marcel.mediacenter.panelevent);
RegisterLeavePanelWatch("*", "NOWPLAYING", Marcel.mediacenter.panelleaveevent);
These callbacks get called when navigating to another panel.
I use it, for example, to send a command to girder to stop streaming live tv, when I leave the tv panel...
You can call ProcessPanelWatchLeavePanel() on your exit NR button, to perform any processing for the termination of the current panel, just before NR is stopped...
(obviously, this doesn't work if you exit NR via file\exit)
Could you add this code (or similar functionality ) to the next NR revision ?
Thanks,
Marcel
I added 3 public functions to PanelWatch.lua :
RegisterLeavePanelWatch
UnregisterLeavePanelWatch
ProcessPanelWatchLeavePanel
RegisterPanelWatch("*", "NOWPLAYING", Marcel.mediacenter.panelevent);
RegisterLeavePanelWatch("*", "NOWPLAYING", Marcel.mediacenter.panelleaveevent);
These callbacks get called when navigating to another panel.
I use it, for example, to send a command to girder to stop streaming live tv, when I leave the tv panel...
You can call ProcessPanelWatchLeavePanel() on your exit NR button, to perform any processing for the termination of the current panel, just before NR is stopped...
(obviously, this doesn't work if you exit NR via file\exit)
Could you add this code (or similar functionality ) to the next NR revision ?
Thanks,
Marcel