-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout Occurs and Playback Reverts to an Earlier Position When Manipulating Network Bandwidth #6920
Comments
Are you able to reduce this issue in v1.6.0-beta.2? This issue has been reported before and has been addressed. The work is spread across several PRs. You can find out more by starting at #6872. |
I'm surprised #6857 doesn't address this issue. But I'm not sure this is an issue with alignment. I think your audio playlist requests are being blocked by the network throttler. Can you provide a sample stream to reproduce the issue? |
Does the above work better with v1.6.0-beta.2 with default config? These setting are problematic and should not be used under bad network conditions:
|
I'm unable to reproduce with the MUX LL-HLS test stream (https://stream.mux.com/v69RSHhFelSm4701snP22dYz2jICy4E4FUyk02rW4gxRM.m3u8) with |
I am currently testing in a standard HLS environment, not Low Latency HLS. Preparing a test URL with non-copyrighted content requires creating a new stream, and additional procedures are needed to expose the test URL externally. This may take some more time. If you already have a URL available, please proceed with that first. For reference, I am creating live stream segments with a duration of 2 seconds. |
@kakao-wise-kim Please include debug logs from a v1.6.0-beta-2 session with the timeout/sync issue displayed above. That should tell us things we need to know like: Does the HLS have program date time? What is the target duration and playlist request frequency? The request event order, error handling actions, and abandon rules details... |
My other recommendation would be to test with Chrome's Network Condition's tab, or using a real network/mobile device with limited throughput. The blocking behavior of NLC and Firefox's conditioner do not reflect real world conditions. |
@robwalch
The requested data and logs will be organized and sent to you. |
I can curl it, but it gives me a 403 from the demo page on local host and the branch build (https://bugfix-live-av-desync-init-p.hls-js-4zn.pages.dev/demo/) for #6922. I was able to reproduce the issue here with another live stream with similar attributes. The misalignment was cause by resetting of initPTS which is only for malformed streams. |
What version of Hls.js are you using?
v1.5.15, v1.5.16, v1.5.17
What browser (including version) are you using?
Chrome 131.0.6778.140 (arm64)
What OS (including version) are you using?
mac os 14.6.1(23G93)
Test stream
live stream
Configuration
Additional player setup steps
using demo page.
Checklist
Steps to reproduce
[Preparation]
• Prepare a live stream that supports adaptive bitrate. Set up the test environment to include a quality level below 1 Mbps.
• On macOS, prepare the Network Link Conditioner. (For Windows, prepare NetLimiter.)
• Create a profile in Network Link Conditioner that limits up/down speed to 1 Mbps.
[Reproduction Steps]
1. Play the live stream without limiting the network speed.
2. Set the network speed slightly above the bitrate of the lowest quality level of the prepared live stream to trigger the abandon rule.
3. When the abandon rule is triggered, an HTTP request timeout occurs during the switching process.
4. Playback returns to the beginning of the buffer and resumes playing.
Expected behaviour
A timeout occurs. Even after configuring retry and timeout settings, the timeout issue persists.
Additionally, the playback position moves backward.
Upon searching the actual CDN logs, there is no evidence of the request being received.
It is suspected that the player is failing to properly http abort and request.
What actually happened?
The playback position moves backward.
Logs indicating HTTP timeouts are continuously being generated.
Console output
Chrome media internals output
The text was updated successfully, but these errors were encountered: