videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.53k stars 425 forks source link

Video/audio gets out of sync after certain minutes of play. #1534

Open mmd550 opened 3 months ago

mmd550 commented 3 months ago

Description

When live stream plays more than 15 minutes, video and audio start to get out-of-sync noticeably, the drift is increasing continuously.

Our test is based on live stream within a local network. I'm unable to provide it outside. There is an issue for this problem in videojs repo but they couldn't solve it and closed it unsolved. Other people are having the same issue as I am.

Steps to reproduce

I am having this issue with live streams in my app so I can't provide link to reproduce.

Results

Expected

No out-of-sync issue.

Error output

Out-of-sync after ~15min of play.

Additional Information

I tested live streams with hls.js and didn't have sync issues

Link for the same issue in videojs repo: https://github.com/videojs/video.js/issues/5607

Hlsjs contains code to fix this specific issue. in the hls.js docs: https://github.com/video-dev/hls.js/blob/master/docs/API.md#maxaudioframesdrift

videojs-http-streaming version

videojs-http-streaming 3.12.1

videojs version

video.js 8.12.0

Browsers

latest chrome, safari, safari mobile, chrome mobile. possibly others

Platforms

android, iOS, windows, linux, mac

welcome[bot] commented 3 months ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

joseabernardes commented 1 week ago

Hi, I'm also experiencing this when playing a hls livestream using v8.19.1. It didn't happened when we were using hls.js in our project. is there any way to minimize this with any config? Even if it introduces buffering, it would already be better that having the audio and video out of sync.