Open wakabayashik opened 1 year ago
@wakabayashik were you able to fix this issue ?
I am having similar issue but only happens in safari.
and when I set maxLiveSyncPlaybackRate:1
there is no issue but it starts to have an issue when it's more than 1.
I have already given up on keeping up live position using the maxLiveSyncPlaybackRate
option, and instead use liveMaxLatencyDurationCount
to ensure that the playback position is not too far from the live position.
does it solve delay issue without playbackRate though? cos when I move around tab, sometimes it's delayed and I want the video catch up the latency
If liveMaxLatencyDurationCount
is specified with maxLiveSyncPlaybackRate=1
, the delay from live will gradually increase until liveMaxLatencyDuration
, where it will jump back to the live position (or liveSyncDuration
)
Thus, liveMaxLatencyDurationCount
might not be a solution if the goal is to always keep playing back the live position with correct lip-sync.
If
liveMaxLatencyDurationCount
is specified withmaxLiveSyncPlaybackRate=1
, the delay from live will gradually increase untilliveMaxLatencyDuration
, where it will jump back to the live position (orliveSyncDuration
) Thus,liveMaxLatencyDurationCount
might not be a solution if the goal is to always keep playing back the live position with correct lip-sync.
@wakabayashik I've encountered exactly the same issue, what causes these gradual increase of latency?
- the accuracy of the clock generator (crystal oscillator) between the live camera and the playback environment
- network jitter on the transmission path
- accidental processor spikes in the playback environment
- et. al.
it seems like this sliding window when false would sync us into the !liveSyncPosition but there is this other check for media.readyState < 4? any idea why? cause if its 4 it can get us to sync.
This is a Chromium issue that should have been fixed since Chrome version 128: https://issues.chromium.org/issues/40190553
What version of Hls.js are you using?
v1.3.3
What browser (including version) are you using?
Google Chrome Version 110.0.5481.78 (Official Build) (64-bit)
What OS (including version) are you using?
Windows 11 Pro, (22000.978)
Test stream
No response
Configuration
Additional player setup steps
(ffmpeg version 5.0.1-full_build-www.gyan.dev)
Checklist
Steps to reproduce
Expected behaviour
playback without lip sync shifting
What actually happened?
lip sync is gradually shifting during playback
Console output
Chrome media internals output
No response