Skip to content

Commit

Permalink
www: checkConnection: fix RTSP protocol flags for ffprobe
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-utkin committed Mar 21, 2024
1 parent 7373647 commit d512d6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/lib/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,8 @@ public function checkConnection() {
switch($this->info['protocol']) {
case 'IP-RTSP':
$path = 'rtsp://'.((empty($this->info['rtsp_username'])) ? '' : $this->info['rtsp_username'].':'.$this->info['rtsp_password'].'@').$this->info['ipAddr'].':'.$this->info['port'].$this->info['rtsp'];
$args = array("-rtsp_flags +prefer_tcp", "-rtsp_transport tcp", "-rtsp_transport tcp")[$this->info['rtsp_rtp_prefer_tcp']];
$rtp_args_menu = array("-rtsp_flags +prefer_tcp", "-rtsp_transport tcp", "-rtsp_transport +udp+udp_multicast");
$args = $rtp_args_menu[$this->info['rtsp_rtp_prefer_tcp']];
break;
case 'IP-MJPEG':
//FIXME: This is the old logic for testing MJPEG. Testing for MJPEG is currently not supported by the bundled ffprobe method used for RTSP
Expand Down

0 comments on commit d512d6e

Please sign in to comment.