How can I detect, if the plugin is deactivated?

Asynchronous MIDI library for Node.js and HTML
Post Reply
free-notes
Posts: 4
Joined: Tue Mar 21, 2017 2:22 am

How can I detect, if the plugin is deactivated?

Post by free-notes » Wed Nov 22, 2017 4:38 am

Hello,
I am using FF ESR 52, Jazz-Plugin 1.0.1.1 and JZZ.js 0.3.9.
When I activate the plugin, all works fine.
But when I deactivate the plugin, Midi does not work (which is of course ok).
But I am currently unable to detect with Javascript, that it is disabled.
In this case I would like to start a kind of workaround, but this is impossible,
when I do not know the state.
I already made some trials with JZZ().or(...) and openMidiOut().or(...),
and also looked into the info() data, but did not see a clear information.

Can you help me?

Kind regards
Richard

sema
Site Admin
Posts: 365
Joined: Mon Oct 17, 2011 7:28 pm

Re: How can I detect, if the plugin is deactivated?

Post by sema » Thu Nov 23, 2017 9:31 pm

Look at the page source for https://jazz-soft.github.io/modules/index.html
If the plugin is installed and active, there will be a MIDI device with (depending on browser) engine == "crx" or engine == "plugin".

I don't think there is a way to distinguish between the cases when plugin is "not installed" or "installed but disabled".

PS: and dont forget to download the latest version of JZZ.js :)

Post Reply