Comments (1)
as you can see here,
https://github.com/dailymotion/hls.js/blob/d0319d7b690fabb9283f2b82b0917b7a204d3fb4/src/controller/buffer-controller.js#L175-L176
hls.js tries to buffer up to a maximum number of bytes (60 MB by default) rather than to buffer up to a maximum nb of seconds.
this is to mimic the browser behaviour (the buffer eviction algorithm is starting after the browser detects that video buffer size reaches a limit in bytes)
config.maxBufferLength is the minimum guaranteed buffer length that hls.js will try to achieve, even if that value exceeds the amount of bytes 60 MB of memory.
maxMaxBufferLength acts as a capping value, as if bitrate is really low, you could need more than one hour of buffer to fill 60 MB....
=> the max buf length hls.js will try to achieve will always be between [config.maxBufferLength,config,maxMaxBufferLength]
I agree that renaming those variables would help ...
maybe config.maxBufferLengthMin and config.maxBufferLengthMax
...
any suggestion welcomed ...
from hls.js.
Related Issues (20)
- 60Mbps+ videos have issues playing HOT 1
- fragParsingError on Ionic/FireTV when using Native HTTP plugin HOT 2
- image stuck in hls HOT 3
- Please suggest me how to fix Buffer Stalled Error HOT 2
- How to fix Hls.ErrorTypes.MEDIA_ERROR HOT 2
- SSR broken in HLS 1.4.12 and Next 13 HOT 4
- gg
- How can I show word by word captions/subtitles? HOT 2
- link can play in HLS extension, but can not work with hls.js HOT 3
- Decode video Using WebCodecs API
- Issue with HLS.js PIPELINE_ERROR_DECODE and MEDIA_ELEMENT_ERROR HOT 3
- DRM Video decoding failed HOT 1
- ipone Xr and iPonh 12 mini issues HOT 2
- Can I play videos of the hlsll protocol? HOT 1
- Improving initial video quality based on previous sessions HOT 4
- Long 608 Captions are are not displayed properly, and sometimes not at all. HOT 3
- Can i swap SSD writing of files with writing to memory? HOT 1
- Can hls.js play HLS streams from Amazon IVS and Tencent live streams? HOT 1
- Issue where CMAF DRM videos cannot be played HOT 1
- "Discontinuity sliding from playlist, take drift into account" log meaning HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hls.js.