| Revision 2175,
1.8 KB
checked in by pablo, 13 months ago
(diff) |
- Adds buffering state and seek events to video provider
- Adds native fullscreen support for Chrome, Firefox and Safari; pseudo-fullscreen support for Opera and IE.
|
| 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: 426px; |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | #player { |
|---|
| 14 | width: 100%; |
|---|
| 15 | height: 100%; |
|---|
| 16 | position: relative; |
|---|
| 17 | background-image: url('http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg'); |
|---|
| 18 | background-size: 100% 100%; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | </style> |
|---|
| 22 | |
|---|
| 23 | <script type="text/javascript"> |
|---|
| 24 | var player; |
|---|
| 25 | var form; |
|---|
| 26 | |
|---|
| 27 | function update(form) { |
|---|
| 28 | document.getElementById("player").style.width = form.size.value + "px"; |
|---|
| 29 | cb.resize(100, 100); |
|---|
| 30 | cb.setBuffer(form.buf.value / 100); |
|---|
| 31 | cb.setProgress(form.pct.value / 100); |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | function init() { |
|---|
| 35 | form = document.getElementById("form"); |
|---|
| 36 | document.getElementById("player").innerHTML = ""; |
|---|
| 37 | player = new jwplayer.html5.player({id: "player", skin: form.skin.options[form.skin.selectedIndex].value}); |
|---|
| 38 | } |
|---|
| 39 | </script> |
|---|
| 40 | </head> |
|---|
| 41 | |
|---|
| 42 | <body onload="init()"> |
|---|
| 43 | <form id="form" onsubmit="update(this); return false;"> |
|---|
| 44 | skin: <select name="skin" onchange="init()"> |
|---|
| 45 | <option value="">default</option> |
|---|
| 46 | <option value="../../../skins/beelden/beelden.xml">beelden</option> |
|---|
| 47 | <option value="../../../skins/stormtrooper/stormtrooper.xml" selected>stormtrooper</option> |
|---|
| 48 | <option value="../../../skins/glow/src/glow.xml">glow</option> |
|---|
| 49 | <option value="../../../skins/five/five.xml">five</option> |
|---|
| 50 | <option value="../../../tags/skins/snel/snel.xml">snel</option> |
|---|
| 51 | <option value="../../../skins/stijl/stijl.xml">stijl</option> |
|---|
| 52 | <option value="../../../skins/bekle/bekle.xml" >bekle</option> |
|---|
| 53 | </select> |
|---|
| 54 | <input type="submit" style="opacity:0; left: -10000px"/> |
|---|
| 55 | </form> |
|---|
| 56 | |
|---|
| 57 | <div id="wrapper"> |
|---|
| 58 | <div id="player"> |
|---|
| 59 | </div> |
|---|
| 60 | </div> |
|---|
| 61 | |
|---|
| 62 | </body> |
|---|
| 63 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.