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 aaa0688 commit 2e30668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/media_source_engine.js
Original file line number Diff line number Diff line change
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 2e30668

Please sign in to comment.