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

Revision 2105, 1.8 KB checked in by jeroen, 16 months ago (diff)

Removed non-working iOS HD/SD buttons

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