From b96c5b7616e1209f5bfb0f8c082e13ba2a6972d1 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 18 Sep 2010 12:50:50 +0000 Subject: [PATCH] set frame url for timeline view --- pandora/static/js/pandora.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora/static/js/pandora.js b/pandora/static/js/pandora.js index 14e7086..0040970 100755 --- a/pandora/static/js/pandora.js +++ b/pandora/static/js/pandora.js @@ -526,12 +526,20 @@ app.constructItem = function(id, view) { video.url = video.baseUrl + '/' + video.height + 'p.' + ($.support.video.webm ? 'webm' : 'mp4'); $.getJSON('/' + id + '/data/subtitles.json', function(data) { var subtitles = data; + subtitles = [{ + 'in': 5, + 'out': 10, + 'text': 'This subtitle is just a test...' + }]; $.getJSON('/' + id + '/data/cuts.json', function(data) { var cuts = data; $item = new Ox.VideoEditor({ cuts: cuts, duration: video.duration, find: '', + frameURL: function(position) { + return '/' + id + '/frame/' + video.width.toString() + '/' + position.toString() + '.jpg' + }, id: 'editor', largeTimeline: true, matches: [],