Skip to content

Instantly share code, notes, and snippets.

@rymai
Created April 18, 2011 09:40
Show Gist options
  • Save rymai/925086 to your computer and use it in GitHub Desktop.
Save rymai/925086 to your computer and use it in GitHub Desktop.
SublimeVideo: Back to poster-frame JavaScript code
// From the documentation: http://docs.sublimevideo.net/javascript-api#onEnd
// You can use sublimevideo.onEnd() to restore the video to its initial state
// (that shows the poster frame and the play button) automatically when the video ends:
sublimevideo.ready(function(){
sublimevideo.onEnd(function(sv){
sublimevideo.stop();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment