Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Spider Monkey Panel (foo_spider_monkey_panel) (Read 145036 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1100
Hello,

does anyone know how to fix the ActiveX htmlfile error?:

ActiveXObject_Constructor failed:
Failed to create ActiveXObject object via CLSID: htmlfile
const doc = new ActiveXObject('htmlfile');

Is there a fix or workaround?
I am using the latest Spider Monkey Panel v1.4.1 with foobar 1.6.5...

Thank you

- TT

You need to install the Gecko support in Wine to have basic HTML controls, and even then, it's not guaranteed to be compatible with Windows.

For anyone else that has the same problem running foobar in Wine, installing Gecko solved the problem.
Unfortunately that didn't work for me using WilB's Biography. But.. I'm using the snap foobar package, I'm not sure how much of a difference that makes.
## foobar 1.6.8 snap, wine 6.16(?),  spider monkey 1.5.2

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1101
Hi,

Does someone knows a trick to trigger a new evaluation of panel stack splitter scripts, from a SMP panel ?
There is the play/pause way, using the function below, because the PerTrack scripts of a PSS panel are evaluate on playback changes, but this creates some sound glitches, especially while playing live streams (because foobar can't buffer the stream when this is a live stream, it need to synchronize with the stream after a pause command)

Code: [Select]
function RefreshPSS() {
if (fb.IsPlaying || fb.IsPaused) {
fb.PlayOrPause();
fb.PlayOrPause();
}
else {
fb.Play();fb.Stop();
}
}

There is a trick you can try.

You will need to enable is the PSS panels "Evaluate scripts when track info is modified"

Change your function to
Code: [Select]

function RefreshPSS() {
let handle_list = plman.GetPlaylistItems(plman.ActivePlaylist);
handle_list.RefreshStats();
}

There is a limitation:  Your handle list cannot be empty.

Ah yes, thanks! By combining both methods, you end up with something which work all the time:
Code: [Select]
function RefreshPSS() {
if (fb.IsPlaying || fb.IsPaused) {
let handle_list = new FbMetadbHandleList(fb.GetNowPlaying());
handle_list.RefreshStats();
}
else {
fb.Play();fb.Stop();
}
}

Important point:
 "Evaluate scripts when track info is modified" needs to be enabled AND on the script tab of the PSS panel, "Titleformat mode on startup" needs to be on "now playing"

Replying to an older post from Page 8. I have the exact same issue and it's exactly what I need for a theme I'm using, which I haven't yet converted to SMP. (It's currently jscript)

I was wondering if these two lines be converted to jscript...

let handle_list = new FbMetadbHandleList(fb.GetNowPlaying());
handle_list.RefreshStats();

 

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1102
Never mind, I figured it out. :)

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1103
SMP Sample rating.js crashes when adding location
(fb2k profile path\user-components\foo_spider_monkey_panel\samples\complete\rating.js)

The first one or two are fine, but adding more locations causes crashes.

List of location
http://radio.linn.co.uk:8003/autodj
https://q2stream.wqxr.org/q2
http://stream.radioparadise.com/flac


So I have tested after clean install.(portable installation v1.6.8 stable)
I installed 2 components.

Column UI 1.7.0-beta.2
SMP 1.5.2

Reload command of right button menu doesn't work.
But after playing the stream, the error window does not appear.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1104
It's a known bug with the component. I've submitted a fix on github but it could be some time before the next version is released.




Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1105
It's a known bug with the component. I've submitted a fix on github but it could be some time before the next version is released.

Thanks for answer. I'll be waiting for the next version.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1106
yea, work was a being too stressful lately, so had zero capacity for any of my pet projects.
will probably return to (semi-)active development by the end of December/January