| Revision 2034,
1.3 KB
checked in by jeroen, 17 months ago
(diff) |
|
updated multitrack examples with short clip
|
| Line | |
|---|
| 1 | <!DOCTYPE html> |
|---|
| 2 | <html lang="en"> |
|---|
| 3 | <head> |
|---|
| 4 | |
|---|
| 5 | <meta charset="UTF-8"> |
|---|
| 6 | <script type="text/javascript" src="assets/jwplayer.min.js"></script> |
|---|
| 7 | <link type="text/css" rel="stylesheet" href="assets/style.css" /> |
|---|
| 8 | <title>Basic Setup</title> |
|---|
| 9 | |
|---|
| 10 | </head> |
|---|
| 11 | <body> |
|---|
| 12 | |
|---|
| 13 | <h2>Basic Setup</h2> |
|---|
| 14 | |
|---|
| 15 | <div id="player"></div> |
|---|
| 16 | <script type="text/javascript"> |
|---|
| 17 | function loadPlayer(key,captions) { |
|---|
| 18 | var options = { |
|---|
| 19 | file: 'http://content.bitsontherun.com/videos/'+key+'.mp4', |
|---|
| 20 | height: 270, |
|---|
| 21 | image: 'http://content.bitsontherun.com/thumbs/'+key.substr(0,8)+'-480.jpg', |
|---|
| 22 | plugins: { |
|---|
| 23 | '../captions.js': {} |
|---|
| 24 | }, |
|---|
| 25 | flashplayer: 'assets/player.swf', |
|---|
| 26 | width: 480, |
|---|
| 27 | debug: 'console' |
|---|
| 28 | }; |
|---|
| 29 | if(captions) { |
|---|
| 30 | options.plugins['../captions.js'].file = captions; |
|---|
| 31 | } |
|---|
| 32 | jwplayer("player").setup(options); |
|---|
| 33 | } |
|---|
| 34 | </script> |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | <ul> |
|---|
| 38 | <li><a href="javascript:loadPlayer('7OCSON1y','IkCsFbAX.srt')">srt captions</a></li> |
|---|
| 39 | <li><a href="javascript:loadPlayer('7OCSON1y','assets/corrie.xml')">dfxp captions</a></li> |
|---|
| 40 | <li><a href="javascript:loadPlayer('aytCR4cx-393434')">mp4 captions</a></li> |
|---|
| 41 | </ul> |
|---|
| 42 | |
|---|
| 43 | <p>Test on a Flash-enabled browser. In all cases, watch the entire video.<br/> |
|---|
| 44 | Captions should render and disappear at the correct time.</p> |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | </body> |
|---|
| 48 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.