I want to broadcast the image from the webcam on the site. The camera is located in LAN with the server at the internal address 192.168.h.h. The webserver is also available at the external address mysite.ru with a dedicated ip address. How to broadcast the camera on the website at mysite.ru, if the camera is in the internal grid, to which the server has access?
I was doing:
img.php
<?php $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, "http://192.168.0.100/video/mjpg.cgi"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_USERPWD, "user:pass"); curl_exec($ch); ?>
if you insert into index.php
<img src="/img.php">
then nothing is shown. that is, it takes a long time to load (it’s the same stream !!) and ends up with nothing. How else can you broadcast from the internal to the external network?
UPD.
cameras controlled by TrendNET TV-IP512P. Server running Win 2K3. Web server - Denver.