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'
|
padding: '16px'
|
||||||
});
|
});
|
||||||
Ox.VideoPlayer({
|
Ox.VideoPlayer({
|
||||||
|
controls: ['play', 'mute', 'size', 'scale', 'timeline', 'position'],
|
||||||
height: 96 * 384/180,//96 * 256/180,
|
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',
|
subtitles: 'srt/' + id + '.srt',
|
||||||
timelineURL: timeline,
|
timeline: timeline,
|
||||||
title: 'Brick',
|
title: '<b>Brick</b> - Rian Johnson - 2005',
|
||||||
videoURL: url,
|
video: url,
|
||||||
width: 384//256
|
width: 500//384//256
|
||||||
}).appendTo(Ox.UI.$body);
|
}).appendTo(Ox.UI.$body);
|
||||||
/*
|
/*
|
||||||
var id = '0133093';
|
var id = '0133093';
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=js
|
||||||
|
|
||||||
Ox.VideoElement = function(options, self) {
|
Ox.VideoElement = function(options, self) {
|
||||||
|
|
||||||
var self = self || {},
|
var self = self || {},
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue