source: plugins/hd/test/modes.html @ 2052

Revision 2052, 1.5 KB checked in by jeroen, 16 months ago (diff)

added OVA test cases to Captions/HD/Related/Sharing plugins

Line 
1<html>
2<head>
3    <meta charset="UTF-8">
4    <script type="text/javascript" src="assets/jwplayer.min.js"></script>
5    <title>Rendering Modes</title>
6    <link rel="stylesheet" href="assets/style.css" />
7</head>
8<body>
9
10<h2>Rendering Modes</h2>
11
12<div id="player"></div>
13<script type="text/javascript">
14
15
16function loadPlayer(html5) {
17    var options = {
18        file: 'http://content.bitsontherun.com/videos/3XnJSIm4-364765.mp4',
19        image: 'http://content.bitsontherun.com/thumbs/3XnJSIm4-720.jpg',
20        height: 300,
21        plugins: {
22            '../hd.js': {
23                file: 'http://content.bitsontherun.com/videos/3XnJSIm4-364768.mp4'
24            }
25        },
26        width: 640,
27        stretching: 'fill'
28    };
29    if(html5) { 
30        options.modes = [{type: 'html5'},{type:'flash',src:'assets/player.swf'}];
31    } else { 
32        options.modes = [{type:'flash',src:'assets/player.swf'},{type: 'html5'}];
33    }
34    jwplayer("player").setup(options);
35};
36</script>
37
38
39<ul>
40    <li><a href="javascript:loadPlayer(true)">HTML5 first</a></li>
41    <li><a href="javascript:loadPlayer(false)">Flash first</a></li>
42</ul>
43
44<p>
45    Check if the plugin works correctly in both rendering modes.<br/>
46    Check the IE 7/8/9, Firefox 3.5/5, Safari and Chrome browsers.<br/>
47    In HTML5 mode, the HD/SD video should not restart when toggling.
48</p>
49<p>
50    Also check the iPhone, iPad and Android devices.<br/>
51    On these, two buttons should show up instead of the dock.
52</p>
53
54
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.