forked from 0x2620/pandora
use oxtimelines
This commit is contained in:
parent
f09e4205cf
commit
96ec35e51a
19 changed files with 393 additions and 164 deletions
|
|
@ -28,12 +28,10 @@ pandora.ui.editor = function(data) {
|
|||
return '/' + pandora.user.ui.item + '/' + pandora.user.ui.videoResolution + 'p' + position + '.jpg';
|
||||
},
|
||||
getLargeTimelineURL: function(type, i) {
|
||||
type = '';
|
||||
return '/' + pandora.user.ui.item + '/timeline' + type + '64p' + i + '.png';
|
||||
return '/' + pandora.user.ui.item + '/timeline' + type + '64p' + i + '.jpg';
|
||||
},
|
||||
getSmallTimelineURL: function(type, i) {
|
||||
type = '';
|
||||
return '/' + pandora.user.ui.item + '/timeline' + type + '16p' + i + '.png';
|
||||
return '/' + pandora.user.ui.item + '/timeline' + type + '16p' + i + '.jpg';
|
||||
},
|
||||
height: pandora.$ui.contentPanel.size(1),
|
||||
id: 'editor',
|
||||
|
|
|
|||
|
|
@ -309,8 +309,7 @@ pandora.ui.list = function() {
|
|||
duration: data.duration,
|
||||
find: isClipsQuery ? clipsQuery.conditions[0].value : '',
|
||||
getImageURL: function(type, i) {
|
||||
type = '';
|
||||
return '/' + data.id + '/timeline' + type + '16p' + i + '.png';
|
||||
return '/' + data.id + '/timeline' + type + '16p' + i + '.jpg';
|
||||
},
|
||||
position: pandora.user.ui.videoPoints[data.id]
|
||||
? pandora.user.ui.videoPoints[data.id].position : 0,
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ pandora.ui.player = function(data) {
|
|||
enableSubtitles: pandora.user.ui.videoSubtitles,
|
||||
find: pandora.user.ui.itemFind,
|
||||
getLargeTimelineURL: function(type, i) {
|
||||
type = '';
|
||||
return '/' + pandora.user.ui.item + '/timeline' + type + '64p' + i + '.png';
|
||||
return '/' + pandora.user.ui.item + '/timeline' + type + '64p' + i + '.jpg';
|
||||
},
|
||||
height: pandora.$ui.contentPanel.size(1),
|
||||
'in': pandora.user.ui.videoPoints[pandora.user.ui.item]['in'],
|
||||
|
|
@ -43,7 +42,7 @@ pandora.ui.player = function(data) {
|
|||
showLayers: Ox.clone(pandora.user.ui.showLayers),
|
||||
showUsers: pandora.site.annotations.showUsers,
|
||||
showTimeline: pandora.user.ui.showTimeline,
|
||||
smallTimelineURL: '/' + pandora.user.ui.item + '/timeline16p.png',
|
||||
smallTimelineURL: '/' + pandora.user.ui.item + '/timeline16p.jpg',
|
||||
subtitles: data.subtitles,
|
||||
timeline: pandora.user.ui.videoTimeline,
|
||||
tooltips: true,
|
||||
|
|
@ -136,4 +135,4 @@ pandora.ui.player = function(data) {
|
|||
}
|
||||
});
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@ pandora.ui.timeline = function(data) {
|
|||
return '/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg';
|
||||
},
|
||||
getLargeTimelineURL: function(type, i) {
|
||||
type = '';
|
||||
return '/' + ui.item + '/timeline' + type + '64p' + i + '.png';
|
||||
return '/' + ui.item + '/timeline' + type + '64p' + i + '.jpg';
|
||||
},
|
||||
height: pandora.$ui.contentPanel.size(1),
|
||||
layers: data.annotations,
|
||||
|
|
@ -40,7 +39,7 @@ pandora.ui.timeline = function(data) {
|
|||
showAnnotationsMap: ui.showAnnotationsMap,
|
||||
showLayers: Ox.clone(ui.showLayers),
|
||||
showUsers: pandora.site.annotations.showUsers,
|
||||
smallTimelineURL: '/' + ui.item + '/timeline16p.png',
|
||||
smallTimelineURL: '/' + ui.item + '/timeline16p.jpg',
|
||||
timeline: ui.videoTimeline,
|
||||
timelines: pandora.site.timelines,
|
||||
video: data.video,
|
||||
|
|
@ -110,4 +109,4 @@ pandora.ui.timeline = function(data) {
|
|||
}
|
||||
});
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ pandora.ui.tv = function() {
|
|||
scaleToFill: pandora.user.ui.videoScale == 'fill',
|
||||
subtitles: videoOptions.subtitles,
|
||||
tooltips: true,
|
||||
timeline: '/' + result.data.item + '/timeline16p.png',
|
||||
timeline: '/' + result.data.item + '/timeline16p.jpg',
|
||||
title: pandora.site.site.name + ' — ' + (
|
||||
list || 'All ' + pandora.site.itemName.plural
|
||||
) + ' — '
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ pandora.ui.videoPreview = function(data) {
|
|||
height: data.height,
|
||||
position: data.position,
|
||||
scaleToFill: true,
|
||||
timeline: '/' + data.id + '/timeline16p.png',
|
||||
timeline: '/' + data.id + '/timeline16p.jpg',
|
||||
width: data.width
|
||||
});
|
||||
return that;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue