source: plugins/sharing/js/test/basic-html5.html @ 1578

Revision 1578, 1.2 KB checked in by jeroen, 2 years ago (diff)

initial try for sharing plugin

Line 
1<html>
2<head>
3
4    <script type="text/javascript" src="assets/jwplayer.js"></script>
5    <style type="text/css">
6        body { padding: 50px; font: 13px/20px Arial; background: #EEE; }
7        #player { -webkit-box-shadow: 0 0 5px #999; margin: 10px 0; background: #000; }
8    </style>
9
10</head>
11<body>
12
13    <h2>Basic HTML5</h2>
14
15    <div id="player"></div>
16
17    <script type="text/javascript">
18        jwplayer('player').setup({
19            file:'http://content.bitsontherun.com/videos/nPripu9l-327.mp4',
20            image:'http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg',
21            modes: [
22                { type: 'html5' },
23                { type: 'flash', src: 'assets/jwplayer.swf' },
24                { type: 'download' }
25            ],
26            plugins: {
27                '../src/sharing.js': {}
28            },
29            height: 270,
30            width: 480
31        });
32    </script>
33
34
35    <h2>Plugin API</h2>
36
37    <ul>
38        <li><a href="#" onclick="jwplayer().getPlugin('sharing').embed(); return false;">embed()</a></li>
39        <li><a href="#" onclick="jwplayer().getPlugin('sharing').share(); return false;">share()</a></li>
40    </ul>
41
42</body>
43</html>
Note: See TracBrowser for help on using the repository browser.