Skip to content
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

Looping video quality with HLS.js #5440

Closed
skyeewers opened this issue May 1, 2023 · 2 comments
Closed

Looping video quality with HLS.js #5440

skyeewers opened this issue May 1, 2023 · 2 comments

Comments

@skyeewers
Copy link

What do you want to do with Hls.js?

I'm trying to use a fairly simple HLS.js setup to stream VOD videos into a website. No thrills no nothing, just pretty plain HLS.js and an HTML 5 <video>-Tag.

My issue is that when I have a looping video (< video src="..." loop>) then the initial change in playback quality from low to high quality is retained every loop of the video. So every time the video loops my users see the lower quality first few segments before the quality is upgraded again.

I'd like them to instead see a consistent quality level as soon as possible. My thought was that the best way to do that would be to "purge" the lower quality segments from HLS.js' cache, but I have no idea how to achieve that.

Is there a good way to do this or something similar that would achieve my goal here?

What have you tried so far?

No response

@skyeewers skyeewers added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels May 1, 2023
@robwalch
Copy link
Collaborator

robwalch commented May 1, 2023

Hi @skyeewers,

This is being tracked as a feature request under #4553.

We've discussed some ways to clear out the lower quality using the API if that is your main goal.

For this to work seamlessly, the stream-controller modules need to support:

  1. Wrapping fragment selection - (re)load segments at the start of a playlist, after the end is buffered, when the media element is set to loop.
  2. Flushing of lower quality segments from the buffer after some playback regardless of forward and back buffer tolerances (which you want to set to be larger than you VOD duration to avoid reloading)

@robwalch robwalch added Duplicate and removed Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels May 1, 2023
@skyeewers
Copy link
Author

@robwalch Thanks for the quick response! That feature request pretty much solves my question. Closing the issue because of that 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants