Skip to content

Instantly share code, notes, and snippets.

@scottgwald
Created July 30, 2014 22:03
Show Gist options
  • Save scottgwald/523846061d1238c1931d to your computer and use it in GitHub Desktop.
Save scottgwald/523846061d1238c1931d to your computer and use it in GitHub Desktop.
[wearscript] update Media syntax
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function main() {
if (WS.scriptVersion(1)) return;
WS.cameraVideo(function (x) {
setTimeout(function () {
new WS.Media('file://' + x, false);
}, 5000);
});
}
window.onload = main;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment