http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

Retry stops after live HLS stream pauses for extended period

Open daveisfera opened this issue 2 years ago • 3 comments

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

  1. Start playing HLS stream
  2. Pause upload to the stream for extended period (20-30 seconds)
  3. 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

daveisfera avatar Mar 18 '22 04:03 daveisfera

👋 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.

welcome[bot] avatar Mar 18 '22 04:03 welcome[bot]

By default, Safari handles HLS natively. Are you playing back natively or forcing VHS to run on Safari?

gkatsev avatar Mar 22 '22 15:03 gkatsev

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/

daveisfera avatar Mar 22 '22 16:03 daveisfera