mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-10-12 10:28:01 +00:00
add rtsp auth disable
This commit is contained in:
@@ -69,7 +69,13 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]] || [[ "$RTSP_HI_RES_ENABLED" == "true
|
||||
echo "delay RTSP for iCamera"
|
||||
#This delay is required. Sometimes, if you start the rtsp server too soon, live view will break on the app.
|
||||
sleep 5
|
||||
LD_LIBRARY_PATH=/opt/wz_mini/lib /opt/wz_mini/bin/v4l2rtspserver $AUDIO_CH $AUDIO_FMT -F0 -U "$RTSP_LOGIN":"$RTSP_PASSWORD" -P "$RTSP_PORT" $DEVICE1 $DEVICE2 &
|
||||
|
||||
if [[ "$RTSP_AUTH_DISABLE" == "true" ]]; then
|
||||
LD_LIBRARY_PATH=/opt/wz_mini/lib /opt/wz_mini/bin/v4l2rtspserver $AUDIO_CH $AUDIO_FMT -F0 -P "$RTSP_PORT" $DEVICE1 $DEVICE2 &
|
||||
else
|
||||
LD_LIBRARY_PATH=/opt/wz_mini/lib /opt/wz_mini/bin/v4l2rtspserver $AUDIO_CH $AUDIO_FMT -F0 -U "$RTSP_LOGIN":"$RTSP_PASSWORD" -P "$RTSP_PORT" $DEVICE1 $DEVICE2 &
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
echo "Set imp variables via helper"
|
||||
/opt/wz_mini/usr/bin/imp_helper.sh > /dev/null 2>&1 &
|
||||
|
@@ -68,6 +68,8 @@ RTSP_LOW_RES_MAX_BITRATE=""
|
||||
RTSP_LOW_RES_TARGET_BITRATE=""
|
||||
RTSP_LOW_RES_ENC_PARAMETER=""
|
||||
|
||||
RTSP_AUTH_DISABLE="false"
|
||||
|
||||
#####RTMP STREAMING#####
|
||||
#### REQUIRES RTSP ####
|
||||
### AND RTSP AUDIO ###
|
||||
|
Reference in New Issue
Block a user