-
Notifications
You must be signed in to change notification settings - Fork 428
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
Allow configuration of backwards buffer #853
Comments
👋 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. |
This would be a good option to have, thanks for mentioning it. Would you be interested in making a PR for this? |
I'll give it a try. Should this new constant be stored in |
Description
This is more a feature request/ question than anything else. Is there any reason why the back buffer which is calculated should not be configurable?
http-streaming/src/segment-loader.js
Lines 69 to 88 in c12e0bc
From what I can tell, the back buffer will be 30s backwards in all but the edge cases described in the code above. I assume that the main objective here is to not remove the chunk which is currently being played from the buffer?
I'm having multiple issues with playing high bitrate 4k in videojs, and having configurable back buffer would mitigate some of the issues related to the max buffer size of MSE. Being able to set it the same way we can set
GOAL_BUFFER_LENGTH
would be helpful. As an example we currently have a video with 10s chunks of ~20MB each. With videojs keeping 30s back buffer and attempting to load 30s of forward buffer we quickly end up overflowing the MSE buffer.Sources
All sources with a high enough bitrate.
Steps to reproduce
Results
Expected
Flawless playback of high bitrate 4K video.
Error output
"Quota exceeded" error message.
Additional Information
This issue is loosely related to other 4K playback issues:
videojs-http-streaming version
videojs-http-streaming 1.13.3
videojs version
video.js 7.7.6
Browsers
Platforms
Other Plugins
Other JavaScript
The text was updated successfully, but these errors were encountered: