update embed panel

This commit is contained in:
rolux 2013-02-21 12:48:17 +05:30
parent 792766a59b
commit f7e6f1b453

View file

@ -151,22 +151,22 @@ pandora.ui.embedPanel = function() {
} }
if (options.showAnnotations) { if (options.showAnnotations) {
video.annotations = video.annotations.filter(function(layer) {
return Ox.contains(options.showLayers, layer.id);
});
if (options.playInToOut) { if (options.playInToOut) {
video.annotations.forEach(function(layer) { video.annotations.forEach(function(layer) {
var items; var items = [];
if (Ox.contains(options.showLayers, layer.id)) { layer.items.forEach(function(item) {
items = []; if ((
layer.items.forEach(function(item) { item['in'] >= options['in'] && item['in'] <= options.out
if (( ) || (
item['in'] >= options['in'] && item['in'] <= options.out item.out >= options['in'] && item.out <= options.out
) || ( )) {
item.out >= options['in'] && item.out <= options.out items.push(item);
)) { }
items.push(item); });
} layer.items = items;
});
layer.items = items;
}
}); });
} }
$annotations = Ox.AnnotationPanel(Ox.extend({ $annotations = Ox.AnnotationPanel(Ox.extend({