Skip to content

Commit

Permalink
fixup! www/ajax/discoverCameras.php: rework postAdd() to use getRtspU…
Browse files Browse the repository at this point in the history
…rls.js and fall back to onvif_tool

change path to share
  • Loading branch information
andrey-utkin committed Feb 29, 2024
1 parent 5093c92 commit c8b7961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/ajax/discoverCameras.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function postAdd()
$onvif_password = $password;

try {
$json_out = shell_exec("node /usr/lib/bluecherry/getRtspUrls.js {$escaleshellarg($onvif_addr)} {$escaleshellarg($onvif_username)} {$escaleshellarg($onvif_password)}");
$json_out = shell_exec("node /usr/share/bluecherry/onvif/getRtspUrls.js {$escaleshellarg($onvif_addr)} {$escaleshellarg($onvif_username)} {$escaleshellarg($onvif_password)}");
if ($json_out) {
$urls = json_decode($json_out);
$main_stream = urls[0].rtspUri;
Expand Down

0 comments on commit c8b7961

Please sign in to comment.