Created
April 18, 2011 09:40
-
-
Save rymai/925086 to your computer and use it in GitHub Desktop.
SublimeVideo: Back to poster-frame JavaScript code
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
// 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