2

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.

4

1 回答 1

0

我建议您使用服务器端解决方案,因为创建客户端解决方案将涉及发送比实际需要更多的数据包。另外,我确信 Java 有更好的工具来模拟“视频”。

于 2011-04-18T12:19:25.523 回答