add video editor demo
This commit is contained in:
parent
8fe529df81
commit
f8ec3fccf4
8 changed files with 5947 additions and 162 deletions
|
|
@ -65,6 +65,7 @@ Ox.load('UI', {
|
|||
left: '16px',
|
||||
top: '16px'
|
||||
}),
|
||||
/*
|
||||
Ox.VideoPlayer({
|
||||
enableKeyboard: true,
|
||||
height: videoSize.height,
|
||||
|
|
@ -83,8 +84,26 @@ Ox.load('UI', {
|
|||
left: '16px',
|
||||
top: '16px'
|
||||
}),
|
||||
*/
|
||||
Ox.VideoPlayer({
|
||||
controlsBottom: ['goto', 'set', 'space', 'position'],
|
||||
externalControls: true,
|
||||
height: videoSize.height,
|
||||
position: 3128.72,
|
||||
showMarkers: true,
|
||||
showMilliseconds: 2,
|
||||
subtitles: 'srt/' + id + '.srt',
|
||||
type: 'in',
|
||||
video: function(position) {
|
||||
return 'png/poster.png'
|
||||
},
|
||||
width: videoSize.width
|
||||
})
|
||||
.css({
|
||||
left: '16px',
|
||||
top: '16px'
|
||||
}),
|
||||
Ox.VideoPlayer({
|
||||
controlsTop: ['fullscreen', 'title', 'find'],
|
||||
controlsBottom: ['play', 'playInToOut', 'volume', 'size', 'space', 'position'],
|
||||
enableFind: true,
|
||||
enableFullscreen: true,
|
||||
|
|
@ -92,9 +111,6 @@ Ox.load('UI', {
|
|||
externalControls: true,
|
||||
height: 192,
|
||||
'in': 3128.72,
|
||||
largeTimeline: function(i) {
|
||||
return 'http://next.0xdb.org/' + id + '/timelines/timeline.64.' + i + '.png';
|
||||
},
|
||||
out: 3130.72,
|
||||
paused: true,
|
||||
position: 3168.04,
|
||||
|
|
@ -102,7 +118,6 @@ Ox.load('UI', {
|
|||
showMarkers: true,
|
||||
showMilliseconds: 2,
|
||||
subtitles: 'srt/' + id + '.srt',
|
||||
timeline: timeline,
|
||||
title: 'Brick - Rian Johnson - 2005',
|
||||
video: url + '?' + + Ox.random(1000000),
|
||||
width: 360
|
||||
|
|
@ -172,7 +187,7 @@ Ox.load('UI', {
|
|||
$videos[2].options({height: size - 48});
|
||||
}
|
||||
}),
|
||||
size: 320,
|
||||
size: 240,
|
||||
resizable: true,
|
||||
resize: [100, 400]
|
||||
},
|
||||
|
|
@ -253,14 +268,14 @@ Ox.load('UI', {
|
|||
$blockTimeline = Ox.BlockVideoTimeline({
|
||||
duration: 6336.08,
|
||||
find: 'brick',
|
||||
getImageURL: function(i) {
|
||||
return 'png/timeline.16.' + i + '.png';
|
||||
},
|
||||
'in': 3128.725,
|
||||
out: 3130.725,
|
||||
results: results,
|
||||
showMilliseconds: 2,
|
||||
subtitles: subtitles,
|
||||
timeline: function(i) {
|
||||
return 'png/timeline.16.' + i + '.png';
|
||||
},
|
||||
width: 376
|
||||
})
|
||||
.css({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue