Commit 1672694
authored
fix: Improve scalable buffering behaviour (Dash-Industry-Forum#4908)
* fix: Improve scalable buffering behaviour
dash.js has two default settings for buffering:
bufferTimeAtTopQuality: 30,
bufferTimeDefault: 18,
All representations will be buffered 18 seconds ahead.
Top (highest pixels per second) representation will be buffered 30 seconds ahead.
Say we are playing back 1080p (ie. top quality representation), then in scalable mode we have two StreamProcessors running (video and enhancement).
The StreamProcessor=enhancement is considered as top quality and buffered 30 seconds ahead. The StreamProcessor=video is not considered as top quality (even though we are playing back the top quality) and buffered only 18 seconds ahead.
This PR aims to streamline the buffering behaviour, so when the top quality is being played back (e.g. 1080p scalable), both representations (enhancement and video) are buffered the same amount of time as bufferTimeAtTopQuality.
* Only apply logic if enhancement is enabled1 parent 4f81206 commit 1672694
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
| |||
0 commit comments