Hello!
I'm trying to use php-rtmp-client with C++ RTMP Server. I used this
code:
require "RtmpClient.class.php";
require "debug.php";
$client = new RtmpClient();
$client->connect("192.168.1.201","brvlive");
$result = $client->call("BaseProtocol::GetStackStatus");
var_dump($result);
But I get this error:
Fatal error: Uncaught exception 'Exception' with message 'Packet
version 0 not supported' in /var/www-dev/rtmp-php/
RtmpClient.class.php: 405
Stack trace:
#0 /var/www-dev/rtmp-php/RtmpClient.class.php(59): RTMPClient-
>handshake()
#1 /var/www-dev/rtmp-php/main.php(6): RTMPClient-
>connect('localhost','flvplayback')
#2 {main}
thrown in /var/www-dev/rtmp-php/RtmpClient.class.php on line 405
After this I tried what is written here:
http://code.google.com/p/php-
rtmp-client/issues/detail?id=5
I gives me NULL all the time.
I know PHP pretty good but don't know where is the problem. It seems
that there is something wrong with the handshake process. Can you give
me some hints on this?
Does php-rtmp-client implement the RTMP specification found here:
http://www.adobe.com/devnet/rtmp.html ?
Thank you very much for your help.
Andrei.