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

Why does browser consumption increase with short videos? #6274

Open
PatricioPoncini opened this issue Mar 8, 2024 · 3 comments
Open

Why does browser consumption increase with short videos? #6274

PatricioPoncini opened this issue Mar 8, 2024 · 3 comments
Labels
Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question

Comments

@PatricioPoncini
Copy link

What do you want to do with Hls.js?

I'm using this library to render videos. The issue is that in short videos like 1 or 2 minutes, browser consumption is much higher than in videos that last around 90 minutes. What could be the reason for this? I'm using the HLS protocol which fetches the videos from a bucket, but the fragments in short or long videos are the same

What have you tried so far?

No response

@PatricioPoncini PatricioPoncini added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Mar 8, 2024
@robwalch
Copy link
Collaborator

robwalch commented Mar 8, 2024

How are you measuring browser consumption?

Can you share examples comparing metrics for a sample of the use-cases you've described?

@PatricioPoncini
Copy link
Author

PatricioPoncini commented Mar 11, 2024

Yes, I take this screenshot

screenshot

Started at 415K and has been increasing up to this point approximately. As the video progresses, the number gradually goes up

Could it be the buffer that stores past fragments infinitely? It's not storing seconds of fragments like the buffer for upcoming fragments

@robwalch
Copy link
Collaborator

The browser ejects media from the buffer as needed when new media is appended. You can configure backBufferLength to make HLS.js remove media proactively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question
Projects
None yet
Development

No branches or pull requests

2 participants