Skip to content

Instantly share code, notes, and snippets.

@shamansir
Created February 6, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shamansir/f55a837d0eb0f45bd2e9 to your computer and use it in GitHub Desktop.
Save shamansir/f55a837d0eb0f45bd2e9 to your computer and use it in GitHub Desktop.
Easiest way to create player with JS
<html>
<head>
<!-- Animatron Player Bundle -->
<script type="text/javascript" src="http://player.animatron.com/latest/bundle/animatron.js"></script>
</head>
<body>
<!-- Canvas element for Player to draw into -->
<canvas id="anm"></canvas>
<!-- Player initialization and project loading -->
<script type="text/javascript">
anm.Player.forSnapshot("anm",
/* Use your project ID from the Publish HTML dialog here */
"http://snapshots.animatron.com/8e188b4e170e60300117ce70fa76ab76-v1.1",
anm.createImporter('animatron'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment