Flash 媒体服务器和AS3:出版作品,不录音
我目前在 Linux (x64) 和 Windows XP (x86) 上使用 FMS4 开发人员版本时遇到问题。
当我使用 ns.publish("foobar", "live") 流式传输网络摄像头时,我可以在另一个客户端上观看直播,但是当我使用 ns.publish("foobar", "record"); 时广播和录音都不起作用。
使用“live”参数,客户端在日志文件和管理控制台中显示为“publishing”,使用“record”,客户端显示为“idle”。
除了fms.ini中的LIVE_DIR之外,我还需要配置什么吗? 这是开发者版本的限制吗? 我还缺少其他东西吗?
这是代码的相关部分(精简):
var camLive:Camera = Camera.getCamera();
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
var ns:NetStream;
nc.connect("rtmp://192.168.1.63/live/");
function netStatusHandler(event:NetStatusEvent):void {
if (event.info.code == "NetConnection.Connect.Success") {
ns = new NetStream(nc);
ns.attachCamera(camLive);
ns.publish("foobar", "record");
}
}
提前致谢!
法比安
I'm currently having an issue with FMS4 developer edition on both Linux (x64) and Windows XP (x86).
When I stream a webcam using ns.publish("foobar", "live") I can watch the live stream on another client, however when i use ns.publish("foobar", "record"); neither broadcasting nor recording works.
Using the "live" parameter the client appears in the log files and in the administration console as "publishing", using "record" the client appears as "idle".
Is there anything I need to configure besides LIVE_DIR in fms.ini?
Is this a restriction in the developer edition?
Is there something else I'm missing?
Here is the relevant part of the code (condensed):
var camLive:Camera = Camera.getCamera();
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
var ns:NetStream;
nc.connect("rtmp://192.168.1.63/live/");
function netStatusHandler(event:NetStatusEvent):void {
if (event.info.code == "NetConnection.Connect.Success") {
ns = new NetStream(nc);
ns.attachCamera(camLive);
ns.publish("foobar", "record");
}
}
Thanks in advance!
Fabian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是实时应用程序。您可以在“applications”内创建一个空文件夹,将其命名为“test”,然后使用参数“record”流式传输到“rtmp://192.168.1.63/test”。根据forums.adobe.com/thread/827134?tstart=0
The problem is the live application. You can create an empty folder inside "applications", call it "test", then stream to "rtmp://192.168.1.63/test" with parameter "record". According to forums.adobe.com/thread/827134?tstart=0