我正在尝试从Red5客户端连接到libRTMP教程"firstApp“应用程序。请注意,我可以从flex客户端连接到它,如教程所述:
...
//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
发布于 2011-06-03 23:44:49
你能看看日志吗?也许librtmp仍然发送"live“作为应用程序的名称。
发布于 2011-08-12 08:20:02
您的red5 webapps目录中是否安装并配置了名为"firstApp“的应用程序?
发布于 2012-05-22 07:42:44
尝试使用"rtmp://localhost/firstApp/definst“作为URL
https://stackoverflow.com/questions/5965065
复制相似问题