Ticket #1647: 1647.html

File 1647.html, 1.2 KB (added by pablo, 13 months ago)
Line 
1<!doctype html>
2<html>
3  <head>
4    <script type="text/javascript" src="http://player.longtailvideo.com/jwplayer-5.9.js"></script>
5
6    <style type=text/css>
7      body {
8        background-color: #eee;
9      }
10     
11      body>div {
12        -webkit-box-shadow: 0 0 5px #999;
13        -moz-box-shadow: 0 0 5px #999;
14        box-shadow: 0 0 5px #999;
15      }
16    </style>
17  </head>
18  <body>
19    <h3>Steps to replicate</h3>
20    <ol>
21      <li>Play video</li>
22      <li>Pause</li>
23      <li>Hit "go" button</li>
24    </ol>
25    <div id="example"></div>
26    <button onclick="resize();">Go</button>
27    <script type="text/javascript">
28      function resize() {
29        for (var i=0; i<500; i++) {
30          setTimeout(function() {
31            jwplayer().resize(Math.floor(Math.random()*500), Math.floor(Math.random()*500));
32          }, i*10);
33        }
34        setTimeout(function() { jwplayer().resize(720, 406); }, 5100);
35      }
36     
37      jwplayer("example").setup({
38        flashplayer: "http://player.longtailvideo.com/player5.9.swf",
39        file: "http://playertest.longtailvideo.com/bunny.mp4",
40        image: "http://playertest.longtailvideo.com/bunny.jpg",
41        width: 720,
42        height: 406
43      });
44    </script>
45  </body>
46</html>