Reference
API methods explained
4 min
message(device id, data) > onmessage(device id, data) send a message from the screen to a specific controller send a message from a controller to the screen broadcast(data) > onmessage(device id, data) send a message from the screen to all controllers setcustomdevicestateproperty(key, value) > oncustomdevicestatechange(device id, data) a device sets it's custom data property and triggers the oncustomdevicestatechange() oncustomdevicestatechange() method on the other devices setactiveplayers(max players) the screen sets maximum two devices as active players and triggers the onactiveplayerschange() onactiveplayerschange() method on the first two devices