mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2026-01-29 05:32:11 -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:
|
volumes:
|
||||||
- tiling_frontend_build:/usr/src/app/dist
|
- tiling_frontend_build:/usr/src/app/dist
|
||||||
live-stream:
|
live-stream:
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 8192M
|
||||||
|
reservations:
|
||||||
|
memory: 8192M
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .stream.env
|
env_file: .stream.env
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ export LIBGL_ALWAYS_INDIRECT=1
|
||||||
|
|
||||||
bash -c "DISPLAY=:99 xvfb-run \
|
bash -c "DISPLAY=:99 xvfb-run \
|
||||||
--server-num 99 \
|
--server-num 99 \
|
||||||
-s "-nocursor -ac -screen 0 1920x1080x24" \
|
-s \"-nocursor -ac -screen 0 1920x1080x24\" \
|
||||||
dbus-launch chromium \
|
dbus-launch chromium \
|
||||||
--temp-profile \
|
--temp-profile \
|
||||||
--window-size=1920,1080 \
|
--window-size=1920,1080 \
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
pathData = newData;
|
pathData = newData;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
for (const video in videos) {
|
for (const video in videos) {
|
||||||
const hlsInstance = new hls({ progressive: false });
|
const hlsInstance = new hls({ backBufferLength: 2 });
|
||||||
hlsInstance.loadSource(
|
hlsInstance.loadSource(
|
||||||
`http://localhost:8888/${video}/index.m3u8`,
|
`http://localhost:8888/${video}/index.m3u8`,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue