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

@ -20,6 +20,12 @@ services:
volumes:
- tiling_frontend_build:/usr/src/app/dist
live-stream:
deploy:
resources:
limits:
memory: 8192M
reservations:
memory: 8192M
network_mode: "host"
restart: unless-stopped
env_file: .stream.env

View file

@ -12,7 +12,7 @@ export LIBGL_ALWAYS_INDIRECT=1
bash -c "DISPLAY=:99 xvfb-run \
--server-num 99 \
-s "-nocursor -ac -screen 0 1920x1080x24" \
-s \"-nocursor -ac -screen 0 1920x1080x24\" \
dbus-launch chromium \
--temp-profile \
--window-size=1920,1080 \

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`,
);