Skip to content

Instantly share code, notes, and snippets.

@bwhite
Created March 2, 2014 00:05
Show Gist options
  • Save bwhite/9299643 to your computer and use it in GitHub Desktop.
Save bwhite/9299643 to your computer and use it in GitHub Desktop.
[wearscript] Eye tracker preview frame stream
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0;" bgcolor='#000000'>
<script>
function server() {
WS.sound('SUCCESS');
WS.cameraOn(.5, 360, 640);
WS.dataLog(false, true, .15);
}
function main() {
if (WS.scriptVersion(1)) return;
WS.serverConnect('ws://192.168.43.235:8081', 'server');
}
window.onload = main;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment