-
-
Save shamansir/f55a837d0eb0f45bd2e9 to your computer and use it in GitHub Desktop.
Easiest way to create player with JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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