Skip to content

Commit

Permalink
LIMS-1621: Support webcam auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Williams committed Jan 22, 2025
1 parent 3684b32 commit d318b41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/Page/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ function _forward_webcam() {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://'.$img.'/axis-cgi/mjpg/video.cgi?fps=5&resolution=CIF&resolution=480x270');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
$im = curl_exec($ch);
curl_close($ch);
}
Expand Down

0 comments on commit d318b41

Please sign in to comment.