Skip to content

Instantly share code, notes, and snippets.

@boazsender
Created December 5, 2010 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boazsender/729511 to your computer and use it in GitHub Desktop.
Save boazsender/729511 to your computer and use it in GitHub Desktop.
Example popcorn code
Popcorn('#video')
.play()
.currentTime(30)
.pause()
.listen('timeupdate', function(event){
console.log( this ) // the current popcorn object
this.currentTime() // the currentTime
})
.play()
.currentTime(20)
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