https://github.com/thorwebdev/popcorn.sequence.smart
create a sequence of any kind of media files that are supported by popcorn.js
https://github.com/thorwebdev/popcorn.sequence.smart
Last synced: 5 months ago
JSON representation
create a sequence of any kind of media files that are supported by popcorn.js
- Host: GitHub
- URL: https://github.com/thorwebdev/popcorn.sequence.smart
- Owner: thorwebdev
- Created: 2014-01-20T00:09:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-20T00:25:48.000Z (over 12 years ago)
- Last Synced: 2025-03-26T02:51:58.541Z (about 1 year ago)
- Size: 113 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
popcorn.sequence.smart
======================
create a sequence of any kind of media files that are supported by popcorn.js
(see http://popcornjs.org/popcorn-docs/players/)
Usage:
```javascript
var sequence = Popcorn.sequence.smart(
"container-id",
[
{
src: "http://www.youtube.com/watch?v=hHUbLv4ThOo",
in: 0,
out: 5
},
{
src: "http://vimeo.com/44633289",
in: 13,
out: 20
},
{
src: "http://www.youtube.com/watch?v=EHkozMIXZ8w&wmode=opaque&controls=0&disablekb=1&controls=0&modestbranding=1&rel=0&showinfo=0",
in: 8,
out: 18
}
]
[,'http://soundcloud.com/lilleput/popcorn']);
//audio src is optional. if you set an audio source the videos' audio will be muted.
Sequences implement the following methods:
//play the sequence
sequence.play();
//pause the sequence
sequence.pause();
//check if sequence is paused
sequence.paused();
//TODO: trigger canplaythrough event
```