HydrogenAudio

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: CrisJ on 2021-04-04 22:56:27

Title: New UI Element (or workaround) wanted
Post by: CrisJ on 2021-04-04 22:56:27
What I want seems simple to me. 

I want an album art viewer that can be clicked on to play/pause current playback. Something someone has probably written, but I cannot find.

Any help appreciated.
Title: Re: New UI Element (or workaround) wanted
Post by: michtar on 2021-04-05 10:50:02
Spider Monkey Panel (foo_spider_monkey_panel) and  JScript Panel (similar components) have clickable script that displays album art. I didn't try it but I'm guessing it should be possible to modify the default command to play/pause.
Title: Re: New UI Element (or workaround) wanted
Post by: dwmartin0906 on 2021-04-05 12:25:55
If you install the spider monkey component go to the following folder path under Foobar's profile folder: user-components\foo_spider_monkey_panel\samples\complete.  There is a script named album art.js. Load spider monkey into a panel and import this script.  Edit the script and add the following statement.  I used the middle mouse button because the left and right buttons are being used.  If you need more details, let me know.

function on_mouse_mbtn_up(x, y) {
   fb.PlayOrPause();
}
SimplePortal 1.0.0 RC1 © 2008-2021