fix multipart items
This commit is contained in:
parent
5591739531
commit
3cf3ba5c6f
1 changed files with 4 additions and 1 deletions
|
|
@ -511,7 +511,6 @@ window.VideoElement = function(options) {
|
|||
}
|
||||
|
||||
function setCurrentItemTime(currentTime) {
|
||||
currentTime += self.options["in"]
|
||||
debug('Video', 'sCIT', currentTime, self.video.currentTime,
|
||||
'delta', currentTime - self.video.currentTime);
|
||||
isReady(self.video, function(video) {
|
||||
|
|
@ -532,6 +531,10 @@ window.VideoElement = function(options) {
|
|||
|
||||
function setCurrentTime(time) {
|
||||
debug('Video', 'sCT', time);
|
||||
if (self.options["in"]) {
|
||||
debug('Video', 'sCT shift time by', self.options["in"], 'to', time);
|
||||
time += self.options["in"]
|
||||
}
|
||||
var currentTime, currentItem;
|
||||
self.items.forEach(function(item, i) {
|
||||
if (time >= item.position
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue