| Revision 1423,
1.6 KB
checked in by zach, 3 years ago
(diff) |
- Updating examples to uses embedder, API, and settings file
|
| 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 type="text/javascript" src="../settings.js"> |
|---|
| 8 | </script> |
|---|
| 9 | <script src="https://www.google.com/jsapi?key=ABQIAAAAmW4wY4GLARKwRKxx1EY4dxTCwYuWkdD_iTnqF3uxU7_DebvfxBREab8CD-MRcuvG-IzP2uSZrQpweg" type="text/javascript"> |
|---|
| 10 | </script> |
|---|
| 11 | <script language="Javascript" type="text/javascript"> |
|---|
| 12 | google.load("dojo", "1"); |
|---|
| 13 | </script> |
|---|
| 14 | </head> |
|---|
| 15 | <body> |
|---|
| 16 | <h1>Dojo Library</h1> |
|---|
| 17 | <p> |
|---|
| 18 | This parses a <video> 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". |
|---|
| 19 | </p> |
|---|
| 20 | <video height="270" id="player" poster="http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg" width="480"> |
|---|
| 21 | <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" /> |
|---|
| 22 | <p> |
|---|
| 23 | HTML5 Player should replace this. |
|---|
| 24 | </p> |
|---|
| 25 | </video> |
|---|
| 26 | <script type="text/javascript"> |
|---|
| 27 | jwplayer("player").setup({ |
|---|
| 28 | players: settings.players, |
|---|
| 29 | players: [{ |
|---|
| 30 | type: "html5" |
|---|
| 31 | }, { |
|---|
| 32 | type: "flash", |
|---|
| 33 | src: "../../../fl5/player.swf" |
|---|
| 34 | }] |
|---|
| 35 | |
|---|
| 36 | }); |
|---|
| 37 | </script> |
|---|
| 38 | <h3>HTML code</h3> |
|---|
| 39 | </body> |
|---|
| 40 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.