Fix server-side add detector when setting time at the end of the video

This commit is contained in:
Ajay
2025-03-12 23:28:52 -04:00
parent b05d696057
commit 244cce56c0
2 changed files with 2 additions and 2 deletions

View File

@@ -2008,7 +2008,7 @@ function startOrEndTimingNewSegment() {
return;
}
verifyCurrentTime();
verifyCurrentTime(getRealCurrentTime());
const roundedTime = Math.round((getRealCurrentTime() + Number.EPSILON) * 1000) / 1000;
if (!isSegmentCreationInProgress()) {
sponsorTimesSubmitting.push({