mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 00:23:40 -05:00
try to fix chromium running out of ram
This commit is contained in:
parent
5c998c5f3a
commit
31a1a3bb34
3 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue