This "HTML5" demo displays use of the Device Orientation API and WebSockets. Orientation events are captured on the mobile device and transfered to a remote client trough WebSockets.
This demo use native APIs found in some browsers. There are no plug-ins, extensions or modifications done to the browsers.
You can run this demo yourself if you want. The source code can be found here: https://github.com/trygve-lie/demos-html5-realtime
@operacesky I use WebSockets for the data transmission. You do find a link to the source code in the description of the video.
tlie 9 months ago
What API do you use for the data transmission? XHR, websockets or something else?
operacesky 9 months ago