WebRTCGUI:
Filter:
webRTCgui/Classes (extension) | GUI

WebRTCGUI
ExtensionExtension

GUI for browsers with remote sync capablities.

Description

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:

Class Methods

.new

Connects to a "local client" which translates the WebRTC messages to OSC and vice versa.

Arguments:

clientHost

Host under which the local client is running

clientPort

Port under which the local client is reachable

Instance Methods

.controllers

Returns an Event with all registered controllers. All kind of elements on the GUI like sliders or buttons are regarded as controllers.

.getController

Gets a controller by name

Arguments:

name

Can be a String or a Symbol as it will transfered to a Symbol.

.reset

Resets the remote GUI and removes all controllers.

.init

.newSlider

Creates a new slider on the remote GUI.

Arguments:

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

.newButton

Creates a new button on the remote GUI.

Arguments:

name

Name of the Button.

callback

A function that will get called when button is pressed. See WebRTCGUI: newSlider for details.

.newText

Creates a new text area on the remote GUI.

Arguments:

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.

.removeController

Allows to remove a controller by name from the remote GUI.

Arguments:

name

Name of the controller.

Examples