support multiple resolutions per video player

This commit is contained in:
rolux 2011-05-17 18:02:25 +02:00
commit 26dd7debe3
2 changed files with 153 additions and 17 deletions

View file

@ -32,7 +32,7 @@ Ox.load('UI', {
videoSize = getVideoSize(),
$videos = [
Ox.VideoPlayer({
controlsBottom: ['play', 'volume', 'scale', 'timeline', 'position'],
controlsBottom: ['play', 'volume', 'scale', 'timeline', 'position', 'resolution'],
controlsTop: ['fullscreen', 'title', 'find'],
enableFind: true,
enableFullscreen: true,
@ -45,12 +45,16 @@ Ox.load('UI', {
logo: 'png/logo.png',
paused: true,
poster: poster,
showIconOnLoad: true,
//showIconOnLoad: true,
showProgress: false,
subtitles: 'srt/' + id + '.srt',
timeline: 'png/timeline.16.png',
title: 'Brick - Rian Johnson - 2005',
video: url + '?' + + Ox.random(1000000),
video: {
96: url + '?' + + Ox.random(1000000),
360: url + '?' + + Ox.random(1000000),
1080: url + '?' + + Ox.random(1000000)
},
width: 360
})
.css({