lazy solution of restarting gst stream in case of network issue
This commit is contained in:
parent
d8d03cdf5a
commit
fba9bfae5a
6
start.sh
6
start.sh
@ -114,4 +114,8 @@ socat TCP-LISTEN:12345,reuseaddr,fork \
|
||||
echo "socat mic listener started on TCP :12345"
|
||||
|
||||
# ── Start streaming agent ─────────────────────────────────────────────────────
|
||||
python3 ~/streaming-agent/gst_agent.py
|
||||
while true; do
|
||||
python3 ~/streaming-agent/gst_agent.py
|
||||
echo "[gst_agent] exited with code $?, restarting in 3s..."
|
||||
sleep 3
|
||||
done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user