source: trunk/fl5/js/test/examples/libraries/dojo.html @ 1415

Revision 1415, 1.5 KB checked in by zach, 3 years ago (diff)
  • HTML5 player and embedder are now compatible with MooTools, Prototype, ext-core, Dojo, and Scriptaculous 1082
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>Dojo Library</title>
5        <script type="text/javascript" src="../../../bin-debug/jwplayer.js">
6        </script>
7        <script src="https://www.google.com/jsapi?key=ABQIAAAAmW4wY4GLARKwRKxx1EY4dxTCwYuWkdD_iTnqF3uxU7_DebvfxBREab8CD-MRcuvG-IzP2uSZrQpweg" type="text/javascript">
8        </script>
9        <script language="Javascript" type="text/javascript">
10            google.load("dojo", "1");
11        </script>
12    </head>
13    <body>
14        <h1>Dojo Library</h1>
15        <p>
16            This parses a &lt;video&gt; tag and sets up a player in it's place for IE9, FF, Chrome, Safari, and Opera. IE < 9 will simply display "HTML5 Player should replace this".
17        </p>
18        <video height="270" id="player" poster="http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg" width="480">
19            <source src="http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4" type="video/mp4" /><source src="http://content.bitsontherun.com/videos/gSzpo2wh-604476.ogv" type="video/ogg" />
20            <p>
21                HTML5 Player should replace this.
22            </p>
23        </video>
24        <script type="text/javascript">
25            jwplayer("player").setup({
26                players: [{
27                        type: "html5"
28                }, {
29                        type: "flash",
30                        src: "../../../fl5/player.swf"
31                }]
32           
33            });
34        </script>
35        <h3>HTML code</h3>
36    </body>
37</html>
Note: See TracBrowser for help on using the repository browser.