Ignore:
Timestamp:
08/10/10 22:16:13 (3 years ago)
Author:
zach
Message:
  • Implementing low level JS API
  • Adding playlist functionality
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/html5/test/examples/single_mp4.html

    r1000 r1199  
    99<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> 
    1010 
    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> 
    1212 
    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> 
    1415<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                }], 
    1622                flashplayer:'/files/player.swf', 
    1723                skin:'/files/skins/five/five.xml' 
     
    2228<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> 
    2329 
    24 <p>First, place this code in the <ems>&lt;head&gt;</ems> of your page:</p> 
     30<p>First, place this code in the <strong>&lt;head&gt;</strong> of your page:</p> 
    2531<pre>&lt;script type="text/javascript" src="/scripts/jquery.js"&gt;&lt;/script&gt; 
    2632&lt;script type="text/javascript" src="/scripts/jquery.jwplayer.js"&gt;&lt;/script&gt;</pre> 
Note: See TracChangeset for help on using the changeset viewer.