Ignore:
Timestamp:
08/05/11 11:35:33 (22 months ago)
Author:
jeroen
Message:

initial cleanup of Flash related. Most test working, but tweaks needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/related/test/options.html

    r1937 r1938  
    11<html> 
    2         <head> 
    3                 <script src="./assets/jwplayer.js" type="text/javascript"></script> 
    4         </head> 
    5         <body> 
    6                 <a href="index.html">Back to index</a> 
    7                 <div id="player"></div> 
    8                 <script type="text/javascript"> 
    9                 jwplayer('player').setup({ 
    10                         levels: [ 
    11                                 { file: 'http://playertest.longtailvideo.com/bunny.mp4' }, 
    12                                 { file: 'http://playertest.longtailvideo.com/bunny.ogv' } 
    13                         ], 
    14                         plugins: { 
    15                                 '../bin-debug/related.js': { 
    16                         useicons: true, 
    17                         onpause: false, 
    18                         redirect: false, 
    19                         uidebug: true, 
    20                         file: "./assets/recs.xml" 
    21                                 } 
    22                         }, 
    23                         'modes': [ 
    24                                 {type: 'html5'}, 
    25                                 {type: 'flash', src: './assets/player.swf'} 
    26                         ] 
    27                 }); 
    28                 </script> 
    29         NB: this example uses an undocumented flag <tt>uidebug</tt> to show the UI layout. 
    30         </body> 
     2<head> 
     3 
     4<meta charset="UTF-8"> 
     5<script type="text/javascript" src="assets/jwplayer.min.js"></script> 
     6<title>Configuration options</title> 
     7<style> 
     8    body { padding: 50px; font: 13px/20px Arial; background: #EEE; } 
     9    #player, p, ul { margin-top: 20px; display: block; } 
     10    #player { -webkit-box-shadow: 0 0 5px #999; } 
     11</style> 
     12 
     13</head> 
     14<body> 
     15 
     16<h2>Configuration options</h2> 
     17 
     18<div id="player"></div> 
     19 
     20<script type="text/javascript"> 
     21function reload(oncomplete,usedock,heading) { 
     22    jwplayer("player").setup({ 
     23        file: 'http://content.bitsontherun.com/videos/nPripu9l-327.mp4', 
     24        flashplayer: 'assets/player.swf', 
     25        height: 270, 
     26        image:'http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg', 
     27        plugins: { 
     28            '../related.js': { 
     29                file: 'assets/blender.xml', 
     30                oncomplete: oncomplete, 
     31                usedock: usedock, 
     32                heading: heading 
     33            } 
     34        }, 
     35        width: 480 
     36    }); 
     37}; 
     38</script> 
     39 
     40 
     41<ul> 
     42    <li><a href="javascript:reload(true,true,'Watch related videos');">Default options</a></li> 
     43    <li><a href="javascript:reload(false,true,'Watch some additional related videos');">Oncomplete disabled, long heading</a></li> 
     44    <li><a href="javascript:reload(true,false,'لوحة ال٠
     45فاتيح العرؚية');">Usedock disabled, arab heading</a></li> 
     46</ul> 
     47 
     48 
     49<p> 
     50    The oncomplete option (true/false) determines whether related thumbs are shown at the end of the video.<br /> 
     51    The usedock option (true/false) determines whether a related dock button is shown.<br/> 
     52    A custom heading replaces the default <em>Watch more videos</em>. 
     53</p> 
     54 
     55 
     56</body> 
    3157</html> 
    32  
Note: See TracChangeset for help on using the changeset viewer.