fix multipart items

This commit is contained in:
j 2025-01-30 10:15:41 +05:30
commit 3cf3ba5c6f

View file

@ -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