Image associate to file?

Help each other out

Image associate to file?

Postby rhinoman on Fri Mar 23, 2007 8:48 am

I use the "play file" command to get a radio stream into foobar, I would like to associate an image with the file location to indicate that it is that and not normal music playing.

Any ideas how to achieve it?

Ta
rhinoman
 
Posts: 416
Joined: Wed Jan 14, 2004 8:58 pm
Location: Herne Bay, UK

Postby Marbles_00 on Fri Mar 23, 2007 10:45 am

One way is bring the image into the screen and give it an ID name, then hide it. For the "play file" event, add a xlobby/show button command with that ID name. When you decide to listen to another source, add a xlobby/hide button command with that ID to hide the image again. You just have to think about which event(s) you want to use for the hide button command with.

Hope this helps.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Postby rhinoman on Mon Mar 26, 2007 10:19 am

Hmmm, thats possible, the difficulty is getting it to work properly with the various zones being selecteded.

Thinking out loud.

Lets say zone 1 is playing the radio, use show button with the play file command.

Switch to zone 2, not playing the radio so you want to hide the button.

Zone 3 is also playing the radio with its own radio button and seperate image.

If you want to stop the radio playing just use stop and then use a hide button with it.

What about when you then switch to playing music without stopping the radio, how would I make that work?

It would seem I'd need to use an if/then/else type aguement...
rhinoman
 
Posts: 416
Joined: Wed Jan 14, 2004 8:58 pm
Location: Herne Bay, UK