- #!/bin/sh
- source /opt/wz_mini/wz_mini.conf
- if ([[ "$RTSP_LOW_RES_ENABLED" == "true" ]] || [[ "$RTSP_HI_RES_ENABLED" == "true" ]]) && [[ "$RTMP_STREAM_ENABLED" == "true" ]] && ([[ "$RTSP_LOW_RES_ENABLE_AUDIO" == "true" ]] || [[ "$RTSP_HI_RES_ENABLE_AUDIO" == "true" ]]); then
- if [[ "$RTMP_STREAM_DISABLE_AUDIO" == "true" ]]; then
- RTMP_AUDIO="no_audio"
- fi
- echo "delay RTMP server"
- #Follow the delay from the RTSP server
- sleep 5
- /opt/wz_mini/bin/rtmp-stream.sh "$RMTP_STREAM_SERVICE" "$RTMP_AUDIO" &
- fi
|