add scale (fill/fit) functionality to video player

This commit is contained in:
rolux 2011-05-13 17:44:50 +02:00
parent eef79f318a
commit 568629fb34
3 changed files with 732 additions and 381 deletions

View file

@ -9,12 +9,18 @@ Ox.load('UI', {
padding: '16px'
});
Ox.VideoPlayer({
controls: ['play', 'mute', 'size', 'scale', 'timeline', 'position'],
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,
subtitles: 'srt/' + id + '.srt',
timelineURL: timeline,
title: 'Brick',
videoURL: url,
width: 384//256
timeline: timeline,
title: '<b>Brick</b> - Rian Johnson - 2005',
video: url,
width: 500//384//256
}).appendTo(Ox.UI.$body);
/*
var id = '0133093';

View file

@ -1,4 +1,5 @@
// vim: et:ts=4:sw=4:sts=4:ft=js
Ox.VideoElement = function(options, self) {
var self = self || {},

File diff suppressed because it is too large Load diff