Set maxMaxBufferLength to avoid bufferAppendError on Chrome 138

```
HLS Error: Type: mediaError Details: bufferAppendError Fatal: true
```

It seems that the default buffer eviction behavior has changed in
Chrome 138, so the default maxMaxBufferLength from hls.js don't apply.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
nyanmisaka
2025-06-27 12:29:09 +08:00
parent 249c84b853
commit 7a02f3b21f
+1
View File
@@ -453,6 +453,7 @@ export class HtmlVideoPlayer {
startPosition: options.playerStartPositionTicks / 10000000,
manifestLoadingTimeOut: 20000,
maxBufferLength: maxBufferLength,
maxMaxBufferLength: maxBufferLength,
videoPreference: { preferHDR: true },
xhrSetup(xhr) {
xhr.withCredentials = includeCorsCredentials;