Changeset 1199 for trunk/html5/test/examples/single_mp4.html
- Timestamp:
- 08/10/10 22:16:13 (3 years ago)
- File:
-
- 1 edited
-
trunk/html5/test/examples/single_mp4.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/html5/test/examples/single_mp4.html
r1000 r1199 9 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 10 11 <p><video height="270" id="player" poster=" /jw/upload/bunny.jpg" src="/jw/upload/bunny.mp4" width="480"></video></p>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 12 13 <script type="text/javascript" src="/jw/js/jquery.jwplayer.js"></script> 13 <script type="text/javascript" src="../../lib/jquery.js"></script> 14 <script type="text/javascript" src="../../jwplayer.js"></script> 14 15 <script type="text/javascript"> 15 $('#player').jwplayer({ 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 }], 16 22 flashplayer:'/files/player.swf', 17 23 skin:'/files/skins/five/five.xml' … … 22 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> 23 29 24 <p>First, place this code in the < ems><head></ems> of your page:</p>30 <p>First, place this code in the <strong><head></strong> of your page:</p> 25 31 <pre><script type="text/javascript" src="/scripts/jquery.js"></script> 26 32 <script type="text/javascript" src="/scripts/jquery.jwplayer.js"></script></pre>
Note: See TracChangeset
for help on using the changeset viewer.
