use chapter positions
This commit is contained in:
parent
55fbe25ccc
commit
734d0ff30e
1 changed files with 3 additions and 1 deletions
|
@ -96,7 +96,9 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
}
|
||||
|
||||
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) {
|
||||
self.$cuts[i] = $('<img>')
|
||||
.addClass(Ox.contains(chapters, v) ? 'OxChapter' : 'OxCut')
|
||||
|
|
Loading…
Reference in a new issue