diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 275b7d0580..2349b696af 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -385,7 +385,6 @@ function tryRemoveElement(elem) { return new Promise((resolve, reject) => { requireHlsPlayer(async () => { let maxBufferLength = 30; - let maxMaxBufferLength = 600; // Some browsers cannot handle huge fragments in high bitrate. // This issue usually happens when using HWA encoders with a high bitrate setting. @@ -393,7 +392,6 @@ function tryRemoveElement(elem) { // https://github.com/video-dev/hls.js/issues/876 if ((browser.chrome || browser.edgeChromium || browser.firefox) && playbackManager.getMaxStreamingBitrate(this) >= 25000000) { maxBufferLength = 6; - maxMaxBufferLength = 6; } const includeCorsCredentials = await getIncludeCorsCredentials(); @@ -401,7 +399,6 @@ function tryRemoveElement(elem) { const hls = new Hls({ manifestLoadingTimeOut: 20000, maxBufferLength: maxBufferLength, - maxMaxBufferLength: maxMaxBufferLength, xhrSetup(xhr) { xhr.withCredentials = includeCorsCredentials; }