在媒体服务器上录制时使用图像作为视频流
我正在创建用户可以录制语音消息的应用程序,问题是录制的文件被传递到其他编码服务器,这需要视频和音频流都存在。
所以我的问题是如何使用静态图像来模拟网络摄像头并将其附加到 NetStream?
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, watchRecording);
//ns.attachCamera(cam);
ns.attachAudio(mic);
ns.publish(fileName.text, "record");
[+]
虽然我无权访问 WOWZA 服务器上的应用程序,但我可以与某人协商添加几行并重新编译它。因此,Java 中的服务器端解决方案也是一种选择。
I'm creating application where user can record voice message, problem is that recorded file is passed to other encoding servers, that requires both video and audio streams to be present.
So my question is how can I use static image to emulate webcam and attach it to NetStream?
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, watchRecording);
//ns.attachCamera(cam);
ns.attachAudio(mic);
ns.publish(fileName.text, "record");
[+]
Although I don't have access to application on WOWZA server I can negotiate with some one to add few lines and recompile it. So server-side solution in java is also an option here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您使用服务器端解决方案,因为创建客户端解决方案将涉及发送比实际需要更多的数据包。另外,我确信 Java 有更好的工具来模拟“视频”。
I'd recommend you use a server side solution, as creating a client side solution would involve sending more packets than is actually needed. Plus, I'm sure Java has better tools to emulate 'video'.