首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >从librtmp连接到red5 "firstApp“时出现问题

从librtmp连接到red5 "firstApp“时出现问题
EN

Stack Overflow用户
提问于 2011-05-11 21:29:39
回答 5查看 1.8K关注 0票数 1

我正在尝试从Red5客户端连接到libRTMP教程"firstApp“应用程序。请注意,我可以从flex客户端连接到它,如教程所述:

代码语言:javascript
运行
复制
...
//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

EN

回答 5

Stack Overflow用户

发布于 2011-06-03 23:44:49

你能看看日志吗?也许librtmp仍然发送"live“作为应用程序的名称。

票数 0
EN

Stack Overflow用户

发布于 2011-08-12 08:20:02

您的red5 webapps目录中是否安装并配置了名为"firstApp“的应用程序?

票数 0
EN

Stack Overflow用户

发布于 2012-05-22 07:42:44

尝试使用"rtmp://localhost/firstApp/definst“作为URL

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5965065

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档