Skip to content

Instantly share code, notes, and snippets.

@adamledwards
Created July 29, 2014 13:59
Show Gist options
  • Save adamledwards/57ab9d0def324c821b49 to your computer and use it in GitHub Desktop.
Save adamledwards/57ab9d0def324c821b49 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Video player test</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Add your site or application content here -->
<iframe id="video-player" src="http://poke-london.23video.com/10077021.ihtml/player.html?token=6a82204fb36020aebe35f8400b6e7cfa&source=embed&photo%5fid=10077064" width="625" height="352" frameborder="0" border="0" scrolling="no" allowfullscreen="1" mozallowfullscreen="1" webkitallowfullscreen="1"></iframe>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="GlueFrame.js"></script>
<script type="text/javascript">
video = document.getElementById("video-player")
video.onload = function() {
video_player = new GlueFrame( document.getElementById("video-player"), "Player" );
video_player.set("playing", true);
video_player.bind("player:video:ended", function(eventName, obj) {
console.log("The event " + eventName + " fired and this object was returned: " + obj);
});
};
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment