include annotations that are span the entire in/out, fixes #2538

This commit is contained in:
j 2015-02-05 19:04:22 +05:30
parent ed5bc510a9
commit 87d758d997

View file

@ -207,6 +207,8 @@ pandora.ui.embedPlayer = function() {
var items = [];
layer.items.forEach(function(item) {
if ((
item['in'] < options['in'] && item.out > options.out
) || (
item['in'] >= options['in'] && item['in'] <= options.out
) || (
item.out >= options['in'] && item.out <= options.out
@ -216,6 +218,7 @@ pandora.ui.embedPlayer = function() {
});
layer.items = items;
});
console.log('!!', video.annotations);
}
$annotations = Ox.AnnotationPanel(Ox.extend({
clickLink: pandora.clickLink,
@ -347,7 +350,7 @@ pandora.ui.embedPlayer = function() {
text: subtitle.value.replace(/\n/g, ' ').replace(/<br\/?>/g, '\n'),
tracks: subtitle.languages || [Ox.getLanguageNameByCode(pandora.site.language)]
};
}) : []
}) : [];
}
function selectAnnotation(data) {