Skip to content

Commit

Permalink
fix(HLS): Fix variant synchronization in HLS after selectVariantTrack (
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Dec 5, 2023
1 parent 165feac commit 8da033f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/media_source_engine.js
Expand Up @@ -867,7 +867,7 @@ shaka.media.MediaSourceEngine = class {
const calculatedTimestampOffset = reference.startTime - timestamp;
const timestampOffsetDifference =
Math.abs(timestampOffset - calculatedTimestampOffset);
if ((timestampOffsetDifference >= 0.1 || seeked || adaptation) &&
if ((timestampOffsetDifference >= 0.001 || seeked || adaptation) &&
(!isChunkedData || calculatedTimestampOffset > 0 ||
!timestampOffset)) {
timestampOffset = calculatedTimestampOffset;
Expand Down

0 comments on commit 8da033f

Please sign in to comment.