Skip to content

Commit

Permalink
LIMS-1621: Support webcam auth (#898)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Williams <[email protected]>
  • Loading branch information
ndg63276 and Mark Williams authored Feb 11, 2025
1 parent 61600ca commit f85c5d9
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 f85c5d9

Please sign in to comment.