Skip to content

Instantly share code, notes, and snippets.

@owenroberts
Last active November 11, 2015 03:42
Show Gist options
  • Save owenroberts/5a230f74d4269cbadf57 to your computer and use it in GitHub Desktop.
Save owenroberts/5a230f74d4269cbadf57 to your computer and use it in GitHub Desktop.
YouTube API Example HTML
<!doctype html>
<html>
<head>
<title>HTML5 Video Example</title>
<meta charset="utf-8" />
<link href="style.css" type="text/css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<div id="container">
<iframe id="player" width="560" height="315" src="http://www.youtube.com/embed/2l_PmSOreGc?version=3&enablejsapi=1&controls=0&showinfo=0&modestbranding=1&rel=0&autohide=1" frameborder="0" allowfullscreen></iframe>
<div id="menu">
<button id="play">Play</button>
<button id="stop">Stop</button>
<button id="seek">Seek to 100s</button>
<button id="jump">Jump ahead 10s</button>
<button id="spin">Spin the Video</button>
</div><br>
<div id="subtitles">Subtitles</div>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment