rtsp fixes

This commit is contained in:
Alfonso Gamboa
2022-05-07 01:23:49 -07:00
parent cea324226e
commit 26af3aa7bc
23 changed files with 899 additions and 24 deletions

2
SD_ROOT/wz_mini/bin/cmd Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000

Binary file not shown.

View File

@@ -189,6 +189,8 @@ if [[ "$RTSP_ENABLED" == "true" ]]; then
swap_enable
mkdir /tmp/alsa
cp /media/mmc/wz_mini/etc/alsa.conf /tmp/alsa
/opt/wz_mini/bin/cmd video on
/opt/wz_mini/bin/cmd audio on
if [[ "$RTSP_PASSWORD" = "" ]]; then
RTSP_PASSWORD=$(cat /opt/wz_mini/tmp/wlan0_mac)