| Revision 1277,
1.6 KB
checked in by zach, 3 years ago
(diff) |
|
Un-reverse merging
|
| Line | |
|---|
| 1 | <html> |
|---|
| 2 | <body> |
|---|
| 3 | <h1>Single MP4 video</h1> |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | <p>This is the basic setup for a video that plays on Safari,iPhone/iPad and Chrome. Firefox, IE and Opera will fallback to Flash. A poster image is included.</p> |
|---|
| 10 | |
|---|
| 11 | <p><video height="270" id="player" poster="http://content.bitsontherun.com/thumbs/nPripu9l-320.jpg" src="http://content.bitsontherun.com/videos/nPripu9l-327.mp4" width="480"></video></p> |
|---|
| 12 | |
|---|
| 13 | <script type="text/javascript" src="../../lib/jquery.js"></script> |
|---|
| 14 | <script type="text/javascript" src="../../jwplayer.js"></script> |
|---|
| 15 | <script type="text/javascript"> |
|---|
| 16 | var player = new jwplayer.html5(document.getElementById("player")); |
|---|
| 17 | player.setup({ |
|---|
| 18 | sources: [{ |
|---|
| 19 | file:"http://content.bitsontherun.com/videos/nPripu9l-327.mp4", |
|---|
| 20 | type: "video/mp4" |
|---|
| 21 | }], |
|---|
| 22 | flashplayer:'/files/player.swf', |
|---|
| 23 | skin:'/files/skins/five/five.xml' |
|---|
| 24 | }); |
|---|
| 25 | </script> |
|---|
| 26 | |
|---|
| 27 | <h3>HTML code</h3> |
|---|
| 28 | <p>Here is the code for this setup. Make sure to change all links to the scripts, player, image and video. They must refer to the correct files on your server.</p> |
|---|
| 29 | |
|---|
| 30 | <p>First, place this code in the <strong><head></strong> of your page:</p> |
|---|
| 31 | <pre><script type="text/javascript" src="/scripts/jquery.js"></script> |
|---|
| 32 | <script type="text/javascript" src="/scripts/jquery.jwplayer.js"></script></pre> |
|---|
| 33 | |
|---|
| 34 | <p>Second, place this code where you want the video to appear:</p> |
|---|
| 35 | <pre><video height="270" id="player" poster="/files/bunny.jpg" |
|---|
| 36 | src="/files/bunny.mp4" width="480"> |
|---|
| 37 | |
|---|
| 38 | <script type="text/javascript"> |
|---|
| 39 | $('#player').jwplayer({ |
|---|
| 40 | flashplayer:'/files/player.swf', |
|---|
| 41 | skin:'/files/five.xml' |
|---|
| 42 | }); |
|---|
| 43 | </script></pre> |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | </body> |
|---|
| 50 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.