source: plugins/sharing/test/modes.html @ 1941

Revision 1941, 1.6 KB checked in by jeroen, 22 months ago (diff)

some plugin dir cleanups

Line 
1<html>
2<head>
3
4<meta charset="UTF-8">
5<script type="text/javascript" src="assets/jwplayer.min.js"></script>
6<title>Rendering Modes</title>
7<style>
8    body { padding: 50px; font: 13px/20px Arial; background: #EEE; }
9    form,p, ul { margin-top: 20px; }
10    #player { -webkit-box-shadow: 0 0 5px #999; background: #000; color:#FFF; }
11</style>
12
13</head>
14<body>
15
16<h2>Rendering Modes</h2>
17
18<div id="container"></div>
19<script type="text/javascript">
20
21function loadPlayer(html5) {
22    var options = {
23        file: 'http://content.bitsontherun.com/videos/3XnJSIm4-364765.mp4',
24        image: 'http://content.bitsontherun.com/thumbs/3XnJSIm4-720.jpg',
25        height: 266,
26        plugins: {'../sharing.js': {
27            code: '<iframe src="http://cdn.example.com/players/3XnJSIm4-V7MoJd7l.html" width="480" height="270" frameborder="0" scrolling="auto"></iframe>',
28            link: 'http://cdn.example.com/players/3XnJSIm4-V7MoJd7l.html'
29        }},
30        width: 580,
31        stretching: 'fill'
32    };
33    if(html5) { 
34        options.modes = [{type: 'html5'},{type:'flash',src:'assets/player.swf'}];
35    } else { 
36        options.modes = [{type:'flash',src:'assets/player.swf'},{type: 'html5'}];
37    }
38    jwplayer("container").setup(options);
39};
40</script>
41
42
43<ul>
44    <li><a href="javascript:loadPlayer(true)">HTML5 first</a></li>
45    <li><a href="javascript:loadPlayer(false)">Flash first</a></li>
46</ul>
47
48<p>
49    Check if the plugin works correctly in both rendering modes.<br/>
50    Check the IE 7/8/9, Firefox 3/5, Safari, Chrome browsers.<br/>
51    Check the iPhone, iPad and Android systems.
52</p>
53
54
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.