mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Merge pull request #2224 from Delgan/patch-1
Fix possible HLSError (BufferFullError) on Firefox
This commit is contained in:
commit
ebb4b05081
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user