Created
December 5, 2010 21:54
-
-
Save boazsender/729511 to your computer and use it in GitHub Desktop.
Example popcorn code
This file contains 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
Popcorn('#video') | |
.play() | |
.currentTime(30) | |
.pause() | |
.listen('timeupdate', function(event){ | |
console.log( this ) // the current popcorn object | |
this.currentTime() // the currentTime | |
}) | |
.play() | |
.currentTime(20) |
This file contains 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
Popcorn('#video') | |
.subtitle({ | |
start: 10, | |
end: 30, | |
text: 'The title of my video' | |
}) | |
.play() | |
Popcorn('#video2') | |
.subtitle({ | |
start: 10, | |
end: 20, | |
text: 'The title of my video' | |
}, | |
{ | |
start: 20, | |
end: 30, | |
text: 'The producer of my video' | |
}) | |
.play() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment