Skip to content

Instantly share code, notes, and snippets.

@octave
octave / gist:4960515
Last active December 13, 2015 19:08 — forked from anonymous/gist:4960116
Prepare SublimeVideo on button click.
<html>
<head>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.min.js'></script>
<script type='text/javascript' src='//cdn.sublimevideo.net/js/wkc49gq2-beta.js'></script>
<script type='text/javascript'>
sublime.load();
sublime.ready(function(){
$('#load_video').click(function(e){
sublime.prepare("video1", function(player) {
// player is now ready.