set frame url for timeline view
This commit is contained in:
parent
56a22050e1
commit
b96c5b7616
1 changed files with 8 additions and 0 deletions
|
@ -526,12 +526,20 @@ app.constructItem = function(id, view) {
|
||||||
video.url = video.baseUrl + '/' + video.height + 'p.' + ($.support.video.webm ? 'webm' : 'mp4');
|
video.url = video.baseUrl + '/' + video.height + 'p.' + ($.support.video.webm ? 'webm' : 'mp4');
|
||||||
$.getJSON('/' + id + '/data/subtitles.json', function(data) {
|
$.getJSON('/' + id + '/data/subtitles.json', function(data) {
|
||||||
var subtitles = data;
|
var subtitles = data;
|
||||||
|
subtitles = [{
|
||||||
|
'in': 5,
|
||||||
|
'out': 10,
|
||||||
|
'text': 'This subtitle is just a test...'
|
||||||
|
}];
|
||||||
$.getJSON('/' + id + '/data/cuts.json', function(data) {
|
$.getJSON('/' + id + '/data/cuts.json', function(data) {
|
||||||
var cuts = data;
|
var cuts = data;
|
||||||
$item = new Ox.VideoEditor({
|
$item = new Ox.VideoEditor({
|
||||||
cuts: cuts,
|
cuts: cuts,
|
||||||
duration: video.duration,
|
duration: video.duration,
|
||||||
find: '',
|
find: '',
|
||||||
|
frameURL: function(position) {
|
||||||
|
return '/' + id + '/frame/' + video.width.toString() + '/' + position.toString() + '.jpg'
|
||||||
|
},
|
||||||
id: 'editor',
|
id: 'editor',
|
||||||
largeTimeline: true,
|
largeTimeline: true,
|
||||||
matches: [],
|
matches: [],
|
||||||
|
|
Loading…
Reference in a new issue