Skip to content

Commit

Permalink
fix: do not remove sub-second amounts from source buffer
Browse files Browse the repository at this point in the history
Partial cherry-pick of #6242

Increases the default required removal duration from `0.01` => `1.0`.

Closes #6240
  • Loading branch information
JulianDomingo authored and joeyparrish committed Feb 17, 2024
1 parent ac71201 commit 267169c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2016,8 +2016,8 @@ shaka.media.StreamingEngine = class {
const bufferedBehind = presentationTime - startTime;

const overflow = bufferedBehind - bufferBehind;
// See: https://github.com/shaka-project/shaka-player/issues/2982
if (overflow <= 0.01) {
// See: https://github.com/shaka-project/shaka-player/issues/6240
if (overflow <= 1) {
shaka.log.v2(logPrefix,
'buffer behind okay:',
'presentationTime=' + presentationTime,
Expand Down

0 comments on commit 267169c

Please sign in to comment.