Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.
For the best experience please use the latest Chrome, Safari or Firefox browser.
webapis.multiscreen.Device.search(function(devices) {
devices.forEach(function(device){
console.log(device);
device.getApplication("myApp", function(app){
if (app.lastKnownStatus === "running") {
device.connectToChannel("myChannel",
{"name": "myClientName"},
function(channel){
channel
.on("message", channelOnMessage);
});
}
});
});
});
webapis.multiscreen.Device.getCurrent(function(device){
device.openChannel("myChannel", {"name": "TVServer"}, function(channel) {
channel
.on("message", channelOnMessage)
.on("clientConnect", registerClient)
.on("clientDisconnect", deregisterClient);
}
});