add Ox.VideoPlayer, demos/video/, and prove Chrome doesn't get buffered time ranges right

This commit is contained in:
rolux 2011-05-12 12:39:48 +02:00
commit 13b887abfb
5 changed files with 364 additions and 2 deletions

10
demos/video/index.html Normal file
View file

@ -0,0 +1,10 @@
<!DOCTYPE HTML>
<html>
<head>
<title>OxJS Video Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../../build/Ox.js"></script>
<script type="text/javascript" src="js/video.js"></script>
</head>
<body></body>
</html>

17
demos/video/js/video.js Normal file
View file

@ -0,0 +1,17 @@
Ox.load('UI', {
debug: true,
theme: 'modern'
}, function() {
var id = '0393109';
var url = 'http://next.0xdb.org/' + id + '/96p.webm?' + Ox.random(1000000);
var timeline = 'http://next.0xdb.org/' + id + '/timeline.16.png';
Ox.UI.$body.css({
padding: '16px'
});
Ox.VideoPlayer({
height: 288,
timeline: timeline,
url: url,
width: 540
}).appendTo(Ox.UI.$body);
});