From 3cf3ba5c6fac9a38560a3f946f5c759c1528a24f Mon Sep 17 00:00:00 2001 From: j Date: Thu, 30 Jan 2025 10:15:41 +0530 Subject: [PATCH] fix multipart items --- static/mobile/js/VideoElement.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/mobile/js/VideoElement.js b/static/mobile/js/VideoElement.js index 9abe27d9..31fbcb8e 100644 --- a/static/mobile/js/VideoElement.js +++ b/static/mobile/js/VideoElement.js @@ -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