Skip to content

Instantly share code, notes, and snippets.

@scottgwald
Last active August 29, 2015 14:02
Show Gist options
  • Save scottgwald/c0dc92c12c95a2df82ad to your computer and use it in GitHub Desktop.
Save scottgwald/c0dc92c12c95a2df82ad to your computer and use it in GitHub Desktop.
[wearscript] Media Player Destroy Bug
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
var tree;
function main() {
if (WS.scriptVersion(1)) return;
tree = new WS.Cards();
tree.add("Hello", "World");
WS.cardTree(tree);
WS.displayCardTree();
setTimeout(function() {
m = new WS.Media('http://techslides.com/demos/sample-videos/small.mp4');
}, 4000);
}
window.onload = main;
</script>
</body>
</html>
{"name":"Media Player Bug"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment