This is a very basic OSC plugin for Cordova, enabling sending and receiving OSC messages over a network.
WARNING: VERSION 1.x.x is a big rewrite and has a (slightly) new interface, please see below.
- Sending and receiving OSC message over a network
An OSC instance can both send and/or receive messages. Each instance can only listen one one local port, but can send to any remote port.
Each instance of an OSC object implements the following methods:
|startListening||Start listening for OSC messages on given port||
|stopListening||Stop listening for OSC messages||
some messages may still arrive after stopping due to internal threading
|send||Send an OSC message||
|addListener||Adds a listener for a certain OSC event||
It is possible to use wildcards in addresses (currently Android only)
|on||Alias of addListener||see addListener|
|close||Closes OSC object, removes all listeners and prepare it for garbage collection||
var port = 8000;var osc = ;osc;osc;osc;
Android OSC relies on (a heavily modified version of) JavaOSC
iOS OSC relies on (a heavily modified version of) CocoaOSC