use chapter positions

This commit is contained in:
rolux 2014-02-06 13:39:05 +00:00
parent 55fbe25ccc
commit 734d0ff30e

View file

@ -96,7 +96,9 @@ Ox.LargeVideoTimeline = function(options, self) {
} }
setTimeout(function() { setTimeout(function() {
var chapters = self.options.chapters.slice(1); var chapters = self.options.chapters.slice(1).map(function(chapter) {
return chapter.position;
});
Ox.unique(chapters.concat(self.options.cuts)).forEach(function(v, i) { Ox.unique(chapters.concat(self.options.cuts)).forEach(function(v, i) {
self.$cuts[i] = $('<img>') self.$cuts[i] = $('<img>')
.addClass(Ox.contains(chapters, v) ? 'OxChapter' : 'OxCut') .addClass(Ox.contains(chapters, v) ? 'OxChapter' : 'OxCut')