我试图从libRTMP客户端连接到Red5教程“firstApp”应用程序。 注意,我可以从Flex客户端连接到它,因为教程介绍:从librtmp连接到red5“firstApp”的问题
...
//from flex client
NetConnection nc = new NetConnection();
nc.connect("rtmp://localhost/firstApp"); - connected, works
//from libRTMP
RTMP* r = RTMP_Alloc();
retVal = RTMP_SetupURL(r, "rtmp://localhost/firstApp");
retVal = RTMP_Connect(r, NULL); - no connection
retVal = RTMP_SetupURL(r, "rtmp://localhost:1935/firstApp");
retVal = RTMP_Connect(r, NULL); - still no connection
//The same thing works fine for Red5 "live" application
retVal = RTMP_SetupURL(r, "rtmp://localhost:1935/live/instance");
retVal = RTMP_Connect(r, NULL); - works, connected
任何想法是什么问题呢? 谢谢, -V
你可以看看日志吗?也许librtmp仍然发送“live”作为应用程序的名称。 不,我用wireshark检查过... 在red5 webapps目录中是否有一个名为“firstApp”的已安装和配置的应用程序? 是的 – user270398 2011-08-16 14:52:35