Hello guys,
I found that starting webui screen session when logged to RPI4 in ssh is working, so i added some delay in script file start_webui.sh like shown below
#!/bin/bash
export COMPANION_DIR=$home/companion
cd $COMPANION_DIR/br-webui/
# STARTUP DELAY (required for dual camera with GoPro, reason unknown)
sleep 5
# limit logfile size to 10k lines
tail -n 10000 $HOME/.webui.log > /tmp/.webui.log
cp /tmp/.webui.log $HOME/.webui.log
rm -f /tmp/.webui.log
# start webserver
node index.js 2>&1 | tee -a $HOME/.webui.log
Now everything is working like expected for the video streaming part
Thanks for your help