-
-
Save octave/4960515 to your computer and use it in GitHub Desktop.
Prepare SublimeVideo on button click.
This file contains hidden or 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> | |
| <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. | |
| }); | |
| }); | |
| }); | |
| </script> | |
| </head> | |
| <body> | |
| <video id='video1' width='640' height= '360' data-youtube-id='93dj7ykJ8sg' | |
| data-autoresize='none' data-uid='93dj7ykJ8sg' preload='none' | |
| poster='http://media.sublimevideo.net/vpa/ms_800.jpg'> | |
| </video> | |
| <button id='load_video'>click to play video </button> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment