WebRTCGUI allows you to publish a GUI to the internet or your local network while every instance of the GUI is also in sync. The GUI can be acceesed via a Browser. For specifics on the setup please check https://github.com/capital-G/webRTCgui.
A quick example:
Connects to a "local client" which translates the WebRTC messages to OSC and vice versa.
clientHost |
Host under which the local client is running |
clientPort |
Port under which the local client is reachable |
Returns an Event with all registered controllers. All kind of elements on the GUI like sliders or buttons are regarded as controllers.
Gets a controller by name
name |
Can be a String or a Symbol as it will transfered to a Symbol. |
Resets the remote GUI and removes all controllers.
Creates a new slider on the remote GUI.
name |
Name of the Slider. Will be used internally for reference but also as label. |
spec |
ControlSpec of the desired controller. |
callback |
A function which will get called when a new value is received. The first and only parameter is the received value. A naive function would be |
Creates a new button on the remote GUI.
name |
Name of the Button. |
callback |
A function that will get called when button is pressed. See WebRTCGUI: newSlider for details. |
Creates a new text area on the remote GUI.
name |
Name of the Textarea. |
callback |
A function that will get called when button is pressed. See WebRTCGUI: newSlider for details. |
text |
Init value of the text area |
monospace |
If set to true the textarea is monospace which is handy when sharing code. |
Allows to remove a controller by name from the remote GUI.
name |
Name of the controller. |