support multiple resolutions per video player
This commit is contained in:
parent
c7167462e8
commit
26dd7debe3
2 changed files with 153 additions and 17 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue