using new video editor api
This commit is contained in:
parent
cb7e7e7570
commit
11ad20b616
1 changed files with 15 additions and 6 deletions
|
@ -1878,24 +1878,33 @@ Ox.load('UI', {
|
||||||
cuts: cuts,
|
cuts: cuts,
|
||||||
duration: video.duration,
|
duration: video.duration,
|
||||||
find: '',
|
find: '',
|
||||||
frameURL: function(position) {
|
getFrameURL: function(position) {
|
||||||
return '/' + app.user.ui.item + '/frame/' + video.width.toString() + '/' + position.toString() + '.jpg'
|
return '/' + app.user.ui.item + '/frame/' + video.width.toString() + '/' + position.toString() + '.jpg'
|
||||||
|
},
|
||||||
|
getLargeTimelineImageURL: function(i) {
|
||||||
|
return '/' + app.user.ui.item + '/timelines/timeline.64.' + i + '.png';
|
||||||
|
},
|
||||||
|
getSmallTimelineImageURL: function(i) {
|
||||||
|
return '/' + app.user.ui.item + '/timelines/timeline.16.' + i + '.png';
|
||||||
},
|
},
|
||||||
height: app.$ui.contentPanel.size(1),
|
height: app.$ui.contentPanel.size(1),
|
||||||
id: 'editor',
|
id: 'editor',
|
||||||
largeTimeline: true,
|
'in': 0,
|
||||||
layers: layers,
|
layers: layers,
|
||||||
matches: [],
|
out: 0,
|
||||||
points: [0, 0],
|
|
||||||
position: app.user.ui.videoPosition[app.user.ui.item] || 0,
|
position: app.user.ui.videoPosition[app.user.ui.item] || 0,
|
||||||
posterFrame: parseInt(video.duration / 2),
|
posterFrame: parseInt(video.duration / 2),
|
||||||
showAnnotations: app.user.ui.showAnnotations,
|
showAnnotations: app.user.ui.showAnnotations,
|
||||||
subtitles: subtitles,
|
showLargeTimeline: true,
|
||||||
|
// fixme: layers have value, subtitles has text?
|
||||||
|
subtitles: subtitles.map(function(subtitle) {
|
||||||
|
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
|
||||||
|
}),
|
||||||
videoHeight: video.height,
|
videoHeight: video.height,
|
||||||
videoId: app.user.ui.item,
|
videoId: app.user.ui.item,
|
||||||
videoWidth: video.width,
|
videoWidth: video.width,
|
||||||
videoSize: app.user.ui.videoSize,
|
videoSize: app.user.ui.videoSize,
|
||||||
videoURL: video.url,
|
video: video.url,
|
||||||
width: app.$ui.document.width() - app.$ui.mainPanel.size(0) - 1
|
width: app.$ui.document.width() - app.$ui.mainPanel.size(0) - 1
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
resize: function(event, data) {
|
resize: function(event, data) {
|
||||||
|
|
Loading…
Reference in a new issue