8 Jul 2011 17:16
Live Stream RTSP + CURL PHP
Leandro Pedrosa <leandro.pedrosa <at> prolins.com.br>
2011-07-08 15:16:17 GMT
2011-07-08 15:16:17 GMT
This is my first time I went into
the mailing list.
I wonder how do I transmit the live stream from the camera ip through the curl using php...
I used this code below, but do not know if it is correct.
$ ch = curl_init ();
curl_setopt ($ ch, CURLOPT_URL, rtsp: / / ip: 554/video1 ");
curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, false);
curl_setopt ($ ch, CURLOPT_USERPWD, "user: psw");
curl_setopt ($ ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$ output = curl_exec ($ ch);
$ info = curl_getinfo ($ ch);
curl_close ($ ch);
Because I need to transmit the live stream without the user enters the user and the password of the camera.
If you can help me, thank you very much.
Att,
Leandro Pedrosa Rodrigues
Programador
Prolins
_______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
RSS Feed