mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-24 17:35:10 +03:00
fix(media): SourceBuffer remove error on some platforms (#3042)
Fixes #2982
This commit is contained in:
committed by
GitHub
parent
ed953bf76c
commit
b7209f00f8
@@ -1627,13 +1627,14 @@ shaka.media.StreamingEngine = class {
|
||||
const bufferedBehind = presentationTime - startTime;
|
||||
|
||||
const overflow = bufferedBehind - bufferBehind;
|
||||
if (overflow <= 0) {
|
||||
// See: https://github.com/google/shaka-player/issues/2982
|
||||
if (overflow <= 0.01) {
|
||||
shaka.log.v2(logPrefix,
|
||||
'buffer behind okay:',
|
||||
'presentationTime=' + presentationTime,
|
||||
'bufferedBehind=' + bufferedBehind,
|
||||
'bufferBehind=' + bufferBehind,
|
||||
'underflow=' + (-overflow));
|
||||
'underflow=' + Math.abs(overflow));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user