| Revision 2180,
2.1 KB
checked in by pablo, 13 months ago
(diff) |
|
Updates for iOS compatibility, styling changes
|
| Line | |
|---|
| 1 | <!doctype html> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <title>Controller test</title> |
|---|
| 5 | <script src="../bin-debug/jwplayer.js"></script> |
|---|
| 6 | |
|---|
| 7 | <style type="text/css"> |
|---|
| 8 | .wrapper { |
|---|
| 9 | width: 720px; |
|---|
| 10 | height: 470px; |
|---|
| 11 | position: relative; |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | </style> |
|---|
| 15 | |
|---|
| 16 | <script type="text/javascript"> |
|---|
| 17 | var player; |
|---|
| 18 | var form; |
|---|
| 19 | |
|---|
| 20 | function update(form) { |
|---|
| 21 | document.getElementById("player").style.width = form.size.value + "px"; |
|---|
| 22 | cb.resize(100, 100); |
|---|
| 23 | cb.setBuffer(form.buf.value / 100); |
|---|
| 24 | cb.setProgress(form.pct.value / 100); |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | function init() { |
|---|
| 28 | form = document.getElementById("form"); |
|---|
| 29 | document.getElementById("player").innerHTML = ""; |
|---|
| 30 | player = new jwplayer.html5.player({ |
|---|
| 31 | id: "player", |
|---|
| 32 | skin: form.skin.options[form.skin.selectedIndex].value, |
|---|
| 33 | playlist: [{ |
|---|
| 34 | levels:[ |
|---|
| 35 | { file: 'http://content.bitsontherun.com/videos/nPripu9l-1ahmry41.mp4' }, |
|---|
| 36 | { file: 'http://content.bitsontherun.com/videos/nPripu9l-1Lq5Mnwq.webm' } |
|---|
| 37 | ], |
|---|
| 38 | image: 'http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg' |
|---|
| 39 | }], |
|---|
| 40 | debug: 'console', |
|---|
| 41 | width: "100%", |
|---|
| 42 | height: "100%" |
|---|
| 43 | }); |
|---|
| 44 | } |
|---|
| 45 | </script> |
|---|
| 46 | </head> |
|---|
| 47 | |
|---|
| 48 | <body onload="init()"> |
|---|
| 49 | |
|---|
| 50 | <form id="form" onsubmit="update(this); return false;"> |
|---|
| 51 | skin: <select name="skin" onchange="init()"> |
|---|
| 52 | <option value="">default</option> |
|---|
| 53 | <option value="../../../skins/beelden/beelden.xml" selected>beelden</option> |
|---|
| 54 | <option value="../../../skins/stormtrooper/stormtrooper.xml">stormtrooper</option> |
|---|
| 55 | <option value="../../../skins/glow/src/glow.xml">glow</option> |
|---|
| 56 | <option value="../../../skins/five/five.xml">five</option> |
|---|
| 57 | <option value="../../../tags/skins/snel/snel.xml">snel</option> |
|---|
| 58 | <option value="../../../skins/stijl/stijl.xml">stijl</option> |
|---|
| 59 | <option value="../../../skins/bekle/bekle.xml" >bekle</option> |
|---|
| 60 | </select> |
|---|
| 61 | <input type="submit" style="opacity:0; left: -10000px"/> |
|---|
| 62 | </form> |
|---|
| 63 | |
|---|
| 64 | <div class="wrapper"> |
|---|
| 65 | <div id="player"></div> |
|---|
| 66 | </div> |
|---|
| 67 | |
|---|
| 68 | </body> |
|---|
| 69 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.