source: trunk/js/test/examples/mp4_ogg.html @ 1410

Revision 1410, 1.1 KB checked in by zach, 3 years ago (diff)

Merging HTML5 and JS

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>Multiple sources</title>
5        <script type="text/javascript" src="../../bin-debug/jwplayer.js">
6        </script>
7    </head>
8    <body>
9        <h1>MP4 plus OGG video</h1>
10                 <p>
11           This page contains a player 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".
12        </p>
13        <div height="270" id="player" width="480">
14                 HTML5 Player should replace this.
15        </div>
16        <script type="text/javascript">
17            var player = new jwplayer.html5(document.getElementById("player"));
18            player.setup({
19                levels: [{
20                        file: "http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"
21                }, {
22                        file: "http://content.bitsontherun.com/videos/gSzpo2wh-604476.ogv"
23                }],
24                image: "http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg"
25            });
26        </script>
27        <h3>HTML code</h3>
28    </body>
29</html>
Note: See TracBrowser for help on using the repository browser.