Helper class that relays audio parameter information to an object inside a WebBrowserComponent.
In order to create a relay you need to specify an identifier for the relayed state. This will result in a Javascript object becoming available inside the WebBrowserComponent under the provided identifier.
Pass the relay object to WebBrowserComponent::Options::withOptionsFrom() to associate it with a WebBrowserComponent instance.
You can then use a WebToggleButtonParameterAttachment as you would a ButtonParameterAttachment, to attach the relay to a RangedAudioParameter. This will synchronise the state and events of the Javascript object with the audio parameter at all times.
Options to configure WebBrowserComponent.
Definition juce_WebBrowserComponent.h:125
A component that displays an embedded web browser.
Definition juce_WebBrowserComponent.h:87
import * as Juce from "juce-framework-frontend";
const checkboxState = Juce.getToggleState("muteToggle");
- See also
- WebToggleButtonParameterAttachment