forked from 0x2620/pandora
dont return part if it ends at clip in point
This commit is contained in:
parent
1e9831060c
commit
3484c1e220
1 changed files with 1 additions and 2 deletions
|
@ -589,12 +589,11 @@ pandora.getClipVideos = function(clip, resolution) {
|
||||||
start = clip['in'] || 0,
|
start = clip['in'] || 0,
|
||||||
end = clip.out;
|
end = clip.out;
|
||||||
resolution = resolution || pandora.user.ui.videoResolution;
|
resolution = resolution || pandora.user.ui.videoResolution;
|
||||||
|
|
||||||
return Ox.flatten(Ox.range(clip.parts).map(function(i) {
|
return Ox.flatten(Ox.range(clip.parts).map(function(i) {
|
||||||
var item = {
|
var item = {
|
||||||
src: pandora.getVideoURL(clip.item, resolution, i + 1)
|
src: pandora.getVideoURL(clip.item, resolution, i + 1)
|
||||||
};
|
};
|
||||||
if(currentTime + clip.durations[i] < start || currentTime > end) {
|
if(currentTime + clip.durations[i] <= start || currentTime > end) {
|
||||||
item = null;
|
item = null;
|
||||||
} else {
|
} else {
|
||||||
if(currentTime <= start && currentTime + clip.durations[i] > start) {
|
if(currentTime <= start && currentTime + clip.durations[i] > start) {
|
||||||
|
|
Loading…
Reference in a new issue