add scale (fill/fit) functionality to video player
This commit is contained in:
parent
eef79f318a
commit
568629fb34
3 changed files with 732 additions and 381 deletions
|
@ -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';
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue