Skip to content

Commit

Permalink
Fix wrong vaules for RTSP_ALT
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Nov 16, 2024
1 parent c95970b commit a68132e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/static/static/yi-hack/script/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,19 @@ start_rtsp()
else

if [[ $RTSP_RES == "low" ]]; then
if [ "$RTSP_ALT" == "yes" ]; then
if [ "$RTSP_ALT" == "alternative" ]; then
h264grabber -m $MODEL_SUFFIX -r low $H264GRABBER_AUDIO -f &
sleep 1
fi
$RTSP_DAEMON -m $MODEL_SUFFIX -r low $RTSP_STI $RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
elif [[ $RTSP_RES == "high" ]]; then
if [ "$RTSP_ALT" == "yes" ]; then
if [ "$RTSP_ALT" == "alternative" ]; then
h264grabber -m $MODEL_SUFFIX -r high $H264GRABBER_AUDIO -f &
sleep 1
fi
$RTSP_DAEMON -m $MODEL_SUFFIX -r high $RTSP_STI $RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
elif [[ $RTSP_RES == "both" ]]; then
if [ "$RTSP_ALT" == "yes" ]; then
if [ "$RTSP_ALT" == "alternative" ]; then
h264grabber -m $MODEL_SUFFIX -r both $H264GRABBER_AUDIO -f &
sleep 1
fi
Expand Down
2 changes: 1 addition & 1 deletion src/static/static/yi-hack/script/wd_rtsp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ echo "$(date +'%Y-%m-%d %H:%M:%S') - Starting RTSP watchdog..." >> $LOG_FILE

while true
do
if [[ "$RTSP_ALT" == "no" ]] ; then
if [[ "$RTSP_ALT" == "standard" ]] ; then
check_rtsp
else
check_rtsp_alt
Expand Down

0 comments on commit a68132e

Please sign in to comment.