From c757c53e5c84fd8a6f945ffc743752830f958307 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 14 Dec 2020 16:29:29 -0500 Subject: [PATCH] Merge pull request #2224 from Delgan/patch-1 Fix possible HLSError (BufferFullError) on Firefox (cherry picked from commit ebb4b050817d4d1920ec28209dee0539410c06ef) Signed-off-by: Joshua M. Boniface --- src/plugins/htmlVideoPlayer/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 9d698edd2c..af555e35be 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -387,11 +387,11 @@ function tryRemoveElement(elem) { let maxBufferLength = 30; let maxMaxBufferLength = 600; - // chromium based browsers cannot handle huge fragments in high bitrate. + // Some browsers cannot handle huge fragments in high bitrate. // This issue usually happens when using HWA encoders with a high bitrate setting. // Limit the BufferLength to 6s, it works fine when playing 4k 120Mbps over HLS on chrome. // https://github.com/video-dev/hls.js/issues/876 - if ((browser.chrome || browser.edgeChromium) && playbackManager.getMaxStreamingBitrate(this) >= 25000000) { + if ((browser.chrome || browser.edgeChromium || browser.firefox) && playbackManager.getMaxStreamingBitrate(this) >= 25000000) { maxBufferLength = 6; maxMaxBufferLength = 6; }