source: tags/plugins/hd/2.0/test/options.html @ 1927

Revision 1927, 1.8 KB checked in by jeroen, 22 months ago (diff)

tagged HD plugin version 2.0

RevLine 
[1679]1<html>
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; }
[1731]9    #player, p, ul { margin-top: 20px; display: block; }
[1913]10    #player { -webkit-box-shadow: 0 0 5px #999; }
[1679]11</style>
12
13</head>
14<body>
15
16<h2>Configuration options</h2>
17
[1913]18<div id="player"></div>
[1679]19
20<script type="text/javascript">
21function reload(state,fullscreen) {
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: {
[1913]28            '../hd.js': {
[1679]29                file: 'http://content.bitsontherun.com/videos/nPripu9l-67067.mp4',
30                state: state,
31                fullscreen: fullscreen
32            }
33        },
34        width: 480
35    });
36};
37</script>
38
39
40<ul>
41    <li><a href="javascript:reload(true,true);">State true, fullscreen true</a></li>
42    <li><a href="javascript:reload(true,false);">State true, fullscreen false</a></li>
43    <li><a href="javascript:reload(false,true);">State false, fullscreen true</a></li>
44    <li><a href="javascript:reload(false,false);">State false, fullscreen false</a></li>
45</ul>
46
47
48<p>
49    The state (true/false) determines whether HD is enabled on startup.<br />
50    It overrides the cookie that stores the HD state per domain.
51</p>
52<p>
53    Fullscreen (true/false) determines whether HD is enabled when switching to FS.<br/>
54    The fullscreen option does not disable HD when switching back to normalscreen.
55</p>
[1913]56<p>
[1921]57    Both the state and fullscreen options work only in Flash and HTML5 on Pointer devices.<br/>
[1913]58    They don't work on Touch devices like iPad, iPhone, Android.
59</p>
[1679]60
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.