source: trunk/html5/test/examples/playlist.html @ 1334

Revision 1334, 3.1 KB checked in by zach, 3 years ago (diff)
  • Fixing playlist example
Line 
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="../../../js/bin-debug/jwplayer.js">
6        </script>
7        <script type="text/javascript" src="../../bin-debug/jwplayer.html5.js">
8        </script>
9    </head>
10    <body>
11        <script type="text/javascript">
12            var playlist = [{
13                levels: [{
14                        file: "http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"
15                }, {
16                        file: "http://content.bitsontherun.com/videos/gSzpo2wh-604476.ogv"
17                }],
18                image: "http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg"
19            }, {
20                levels: [{
21                        file: "http://content.bitsontherun.com/videos/guYqV1AB-486405.mp4"
22                }, {
23                        file: "http://content.bitsontherun.com/videos/guYqV1AB-604476.ogv"
24                }],
25                image: "http://content.bitsontherun.com/thumbs/guYqV1AB-480.jpg"
26            }, {
27                levels: [{
28                        file: "http://content.bitsontherun.com/videos/DMJODX8R-486405.mp4"
29                }, {
30                        file: "http://content.bitsontherun.com/videos/DMJODX8R-604476.ogv"
31                }],
32                image: "http://content.bitsontherun.com/thumbs/DMJODX8R-480.jpg"
33            }];
34        </script>
35        <h1>Playlists</h1>
36        <p>
37            This page is meant to test playlists with various playlist related config options. For now, all of them use the same playlist.
38        </p>
39        <p>
40            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".
41        </p>
42        <p>
43            The standard playlist
44        </p>
45        <div height="270" id="player1" width="480">
46            HTML5 Player should replace this
47        </div>
48        <script type="text/javascript">
49            var player1 = new jwplayer.html5(document.getElementById("player1"));
50            player1.setup({
51                playlist: playlist
52            });
53        </script>
54        <p>
55            Continuously repeat with shuffle on
56        </p>
57        <div height="270" id="player2" width="480">
58            HTML5 Player should replace this
59        </div>
60        <script type="text/javascript">
61            var player2 = new jwplayer.html5(document.getElementById("player2"));
62            player2.setup({
63                playlist: playlist,
64                repeat: "always",
65                shuffle: true,
66                debug: "console"
67            });
68        </script>
69        <p>
70            Play through once and stop after playing the last item
71        </p>
72        <div height="270" id="player3" width="480">
73            HTML5 Player should replace this
74        </div>
75        <script type="text/javascript">
76            var player3 = new jwplayer.html5(document.getElementById("player3"));
77            player3.setup({
78                playlist: playlist,
79                repeat: "list"
80            });
81        </script>
82        <h3>HTML code</h3>
83    </body>
84</html>
Note: See TracBrowser for help on using the repository browser.