| Revision 1706,
1.1 KB
checked in by jeroen, 2 years ago
(diff) |
|
some incremental work on multilanguage captions - mostly structuring the app
|
| Line | |
|---|
| 1 | <html> |
|---|
| 2 | <head> |
|---|
| 3 | |
|---|
| 4 | <meta charset="UTF-8"> |
|---|
| 5 | <script type="text/javascript" src="assets/jwplayer.min.js"></script> |
|---|
| 6 | <title>MP4 TimedText</title> |
|---|
| 7 | <style> |
|---|
| 8 | body { padding: 50px; font: 13px/20px Arial; background: #EEE; } |
|---|
| 9 | form,p, ul { margin-top: 20px; } |
|---|
| 10 | #player { -webkit-box-shadow: 0 0 5px #999; background: #000; color:#FFF; line-height:270px; text-align: center; } |
|---|
| 11 | </style> |
|---|
| 12 | |
|---|
| 13 | </head> |
|---|
| 14 | <body> |
|---|
| 15 | |
|---|
| 16 | <h2>MP4 TimedText</h2> |
|---|
| 17 | |
|---|
| 18 | <div id="player"></div> |
|---|
| 19 | <script type="text/javascript"> |
|---|
| 20 | jwplayer("player").setup({ |
|---|
| 21 | height: 270, |
|---|
| 22 | plugins: { |
|---|
| 23 | '../captions.swf': {} |
|---|
| 24 | }, |
|---|
| 25 | flashplayer: 'assets/player.swf', |
|---|
| 26 | width: 480 |
|---|
| 27 | }); |
|---|
| 28 | </script> |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | <ul> |
|---|
| 32 | <li><a href="javascript:jwplayer().load('http://playertest.longtailvideo.com/bunny.mp4')">MP4 with single TextTrack</a></li> |
|---|
| 33 | <li><a href="javascript:jwplayer().load('http://playertest.longtailvideo.com/timoto.mp4')">MP4 with multiple TextTracks</a></li> |
|---|
| 34 | </ul> |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | <p>Test whether the text tracks are correctly shown and rendered.<br /> |
|---|
| 38 | After hard refreshes, the cookied track should show up.<br /> |
|---|
| 39 | The miltitrack example should pop up a textbox. |
|---|
| 40 | </p> |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | </body> |
|---|
| 44 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.