Changeset 2019


Ignore:
Timestamp:
11/06/11 13:37:05 (19 months ago)
Author:
jeroen
Message:

small fix to compress shortcuts test to one case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/sharing/test/shortcuts.html

    r2018 r2019  
    1717<div id="container"></div> 
    1818<script type="text/javascript"> 
    19  
    20 function loadPlayer(html5) { 
    21     var options = { 
    22         levels: [ 
    23          { file: 'http://content.bitsontherun.com/videos/3XnJSIm4-364765.mp4' }, 
    24          { file: 'http://content.bitsontherun.com/videos/3XnJSIm4-364765.ogg' } 
    25         ], 
    26         image: 'http://content.bitsontherun.com/thumbs/3XnJSIm4-720.jpg', 
    27         height: 300, 
    28         plugins: {'../sharing.js': { 
    29             link: 'http://cdn.example.com/players/3XnJSIm4-V7MoJd7l.html', 
    30             shortcuts: true 
    31         }}, 
    32         width: 640, 
    33         stretching: 'fill' 
    34     }; 
    35     if(html5) {  
    36         options.modes = [{type: 'html5'},{type:'flash',src:'assets/player.swf'}]; 
    37     } else {  
    38         options.modes = [{type:'flash',src:'assets/player.swf'},{type: 'html5'}]; 
    39     } 
    40     jwplayer("container").setup(options); 
    41 }; 
     19jwplayer("container").setup({ 
     20    file: 'http://content.bitsontherun.com/videos/bkaovAYt-364765.mp4', 
     21    flashplayer: 'assets/player.swf', 
     22    image: 'http://content.bitsontherun.com/thumbs/bkaovAYt-480.jpg', 
     23    height: 270, 
     24    plugins: {'../sharing.js': { 
     25        link: 'http://cdn.example.com/players/3XnJSIm4-V7MoJd7l.html', 
     26        shortcuts: true 
     27    }}, 
     28    width: 480 
     29}); 
    4230</script> 
    4331 
    44  
    45 <ul> 
    46     <li><a href="javascript:loadPlayer(true)">HTML5 first</a></li> 
    47     <li><a href="javascript:loadPlayer(false)">Flash first</a></li> 
    48 </ul> 
    49  
    50 <p>Instead of the <em>share</em> button, working Facebook and Twitter buttons should pop up in the dock.</p> 
    51  
     32<ol> 
     33<li>Instead of the <em>share</em> button, working Facebook and Twitter buttons should pop up in the dock.</li> 
     34<li>Test in one desktop browser and on iPad.</li> 
     35</ol> 
    5236 
    5337</body> 
Note: See TracChangeset for help on using the changeset viewer.