| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <title>Playlists</title> |
|---|
| 5 | <script type="text/javascript" src="../../bin-debug/jwplayer.js"> |
|---|
| 6 | </script> |
|---|
| 7 | </head> |
|---|
| 8 | <body> |
|---|
| 9 | <script type="text/javascript"> |
|---|
| 10 | var playlist = [{ |
|---|
| 11 | levels: [{ |
|---|
| 12 | file: "http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4" |
|---|
| 13 | }, { |
|---|
| 14 | file: "http://content.bitsontherun.com/videos/gSzpo2wh-604476.ogv" |
|---|
| 15 | }], |
|---|
| 16 | image: "http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg" |
|---|
| 17 | }, { |
|---|
| 18 | levels: [{ |
|---|
| 19 | file: "http://content.bitsontherun.com/videos/guYqV1AB-486405.mp4" |
|---|
| 20 | }, { |
|---|
| 21 | file: "http://content.bitsontherun.com/videos/guYqV1AB-604476.ogv" |
|---|
| 22 | }], |
|---|
| 23 | image: "http://content.bitsontherun.com/thumbs/guYqV1AB-480.jpg" |
|---|
| 24 | }, { |
|---|
| 25 | levels: [{ |
|---|
| 26 | file: "http://content.bitsontherun.com/videos/DMJODX8R-486405.mp4" |
|---|
| 27 | }, { |
|---|
| 28 | file: "http://content.bitsontherun.com/videos/DMJODX8R-604476.ogv" |
|---|
| 29 | }], |
|---|
| 30 | image: "http://content.bitsontherun.com/thumbs/DMJODX8R-480.jpg" |
|---|
| 31 | }]; |
|---|
| 32 | </script> |
|---|
| 33 | <h1>Playlists</h1> |
|---|
| 34 | <p> |
|---|
| 35 | This page is meant to test playlists with various playlist related config options. For now, all of them use the same playlist. |
|---|
| 36 | </p> |
|---|
| 37 | <p> |
|---|
| 38 | It contains three players with multiple sources, so it should play back in IE9, FF, Chrome, Safari, and Opera. IE < 9 will simply display "HTML5 Player should replace this". |
|---|
| 39 | </p> |
|---|
| 40 | <p> |
|---|
| 41 | The standard playlist |
|---|
| 42 | </p> |
|---|
| 43 | <div height="270" id="player1" width="480"> |
|---|
| 44 | HTML5 Player should replace this |
|---|
| 45 | </div> |
|---|
| 46 | <script type="text/javascript"> |
|---|
| 47 | var player1 = new jwplayer.html5(document.getElementById("player1")); |
|---|
| 48 | player1.setup({ |
|---|
| 49 | playlist: playlist |
|---|
| 50 | }); |
|---|
| 51 | </script> |
|---|
| 52 | <p> |
|---|
| 53 | Continuously repeat with shuffle on |
|---|
| 54 | </p> |
|---|
| 55 | <div height="270" id="player2" width="480"> |
|---|
| 56 | HTML5 Player should replace this |
|---|
| 57 | </div> |
|---|
| 58 | <script type="text/javascript"> |
|---|
| 59 | var player2 = new jwplayer.html5(document.getElementById("player2")); |
|---|
| 60 | player2.setup({ |
|---|
| 61 | playlist: playlist, |
|---|
| 62 | repeat: "always", |
|---|
| 63 | shuffle: true, |
|---|
| 64 | debug: "console" |
|---|
| 65 | }); |
|---|
| 66 | </script> |
|---|
| 67 | <p> |
|---|
| 68 | Play through once and stop after playing the last item |
|---|
| 69 | </p> |
|---|
| 70 | <div height="270" id="player3" width="480"> |
|---|
| 71 | HTML5 Player should replace this |
|---|
| 72 | </div> |
|---|
| 73 | <script type="text/javascript"> |
|---|
| 74 | var player3 = new jwplayer.html5(document.getElementById("player3")); |
|---|
| 75 | player3.setup({ |
|---|
| 76 | playlist: playlist, |
|---|
| 77 | repeat: "list" |
|---|
| 78 | }); |
|---|
| 79 | </script> |
|---|
| 80 | <h3>HTML code</h3> |
|---|
| 81 | </body> |
|---|
| 82 | </html> |
|---|