Skip to content

Instantly share code, notes, and snippets.

@mikepence
Forked from hhua/Vimeo javascript API
Created November 10, 2013 17:22
Show Gist options
  • Save mikepence/7401098 to your computer and use it in GitHub Desktop.
Save mikepence/7401098 to your computer and use it in GitHub Desktop.
<html>
<head></head>
<body>
<iframe id="player" width="" height="" src="http://player.vimeo.com/video/62207569?api=1&player_id=player" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<script src="http://a.vimeocdn.com/js/froogaloop2.min.js"></script>
<script>
var player = $f('player'); // You should pass player id, which is 'player'
player.api('ready', function() {
player.api('play');
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment