1
0
Fork 0
forked from 0x2620/oxjs
oxjs/demos/video/js/video.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

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({
controls: ['play', 'mute', 'size', 'scale', 'timeline', 'position'],
2011-05-13 00:12:41 +02:00
height: 96 * 384/180,//96 * 256/180,
logoLink: 'http://next.0xdb.org/' + id,
logoTitle: 'Watch on 0xdb',
logo: 'png/logo.png',
paused: true,
scaleToFill: true,
2011-05-13 00:12:41 +02:00
subtitles: 'srt/' + id + '.srt',
timeline: timeline,
title: '<b>Brick</b> - Rian Johnson - 2005',
video: url,
width: 500//384//256
}).appendTo(Ox.UI.$body);
2011-05-12 22:02:22 +02:00
/*
var id = '0133093';
var url = 'http://next.0xdb.org/' + id + '/96p.webm?' + Ox.random(1000000);
var timeline = 'http://next.0xdb.org/' + id + '/timeline.16.png';
Ox.VideoPlayer({
height: 96 * 256/230,
timeline: timeline,
url: url,
width: 256
}).css({
left: '300px'
}).appendTo(Ox.UI.$body);
*/
});