Skip to content

An issue where the audio sync doesn't match during long playback #7632

@huhani

Description

@huhani

What version of Hls.js are you using?

1.6.14

What browser (including version) are you using?

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

What OS (including version) are you using?

Windows 10

Test stream

No response

Configuration

{
  "debug": true,
  "enableWorker": true,
  "lowLatencyMode": true,
  "backBufferLength": 90
}

Additional player setup steps

I would like to share the problematic live stream via a Slack direct message.

Checklist

Steps to reproduce

An issue occurs where the audio and video sync drifts apart after about 20 minutes of playback. However, refreshing the web page resynchronizes them.

When the audio and video are out of sync, seeking (even just slightly forward or backward from the current playback position) temporarily restores the sync. However, the sync drifts apart again over time.

The audio/video sync issue occurs regardless of the video quality.

Expected behaviour

No audio/video sync mismatch issue occurs, even during extended playback.

What actually happened?

The video and audio drift further out of sync the longer it plays.

hlsjs.video-dev.org-1762750056489.log

media-internals.txt

Console output

Please refer to the attached log file above.

Chrome media internals output

Please refer to the attached log file above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions