http-streaming
http-streaming copied to clipboard
Retry stops after live HLS stream pauses for extended period
Description
When watching a live stream that pauses adding data, the retry happens for about 8 times and then two happen in quick succession and no more retries happen. If I'm understanding the code/documentation correctly, it should be set to Infinity
and should continue to happen, but it appears there's an issue with that and I believe it's related to the double request.
Sources
Since the live source has to pause to induce the problem, I don't have a publicly available link, but I can reproduce this every time.
Steps to reproduce
- Start playing HLS stream
- Pause upload to the stream for extended period (20-30 seconds)
- Observe that loading of playlist stops after the double request
Results
Expected
Playlist would continue to be requested
Error output
No output in the console.
Additional Information
N/A
videojs-http-streaming version
2.14.0
videojs version
7.18.1
Browsers
Safari 15.4
Platforms
macOS 12.3
Other Plugins
None
Other JavaScript
jQuery
👋 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.
By default, Safari handles HLS natively. Are you playing back natively or forcing VHS to run on Safari?
I'm loading Video.js
and then playing the HLS URL using it. Like with this demo page:
https://videojs.github.io/videojs-contrib-hls/