try to fix chromium running out of ram

This commit is contained in:
Micha Albert 2024-09-21 06:49:25 +02:00
parent 5c998c5f3a
commit 31a1a3bb34
No known key found for this signature in database
GPG key ID: 33149159A417BBCE
3 changed files with 8 additions and 2 deletions

View file

@ -51,7 +51,7 @@
pathData = newData;
setTimeout(() => {
for (const video in videos) {
const hlsInstance = new hls({ progressive: false });
const hlsInstance = new hls({ backBufferLength: 2 });
hlsInstance.loadSource(
`http://localhost:8888/${video}/index.m3u8`,
);