Posts: 76
Joined: Mar 2011
Reputation:
4
Hi everyone. I'm writing a music streaming script that often plays an album while a dialog is being shown. (I'm using dialog instead of window for aesthetics to have a transparent window background). When the visualizer activates, it appears behind the dialog. Anyone know of a technique to make sure it's on top of the dialog?
Posts: 1,664
Joined: Jun 2011
Reputation:
119
The controls of a WindowDialog container are always displayed of top of XBMC UI - this is an inherent property of WindowDialog. You need either to use Window class or hide your WindowDialog while music is played by calling close().
Posts: 76
Joined: Mar 2011
Reputation:
4
Gotcha. How about a way to tell when the visualizer gets turned on? In my case I've got the visualizer set as my screensaver with a 2 min wait, which of course is a variable use-specified time that could be nearly anything. Is there an 'onAction' code for the screensaver or visualizer activation? I don't see anything in the debug log when either one activates.
Thanks for your help.
-Jerimiah
Posts: 76
Joined: Mar 2011
Reputation:
4
Okay that should work. Thanks for the ideas.