在 Flex/AIR 中访问原始传出 NetStream 数据
我有一个 Flex/AIR 桌面应用程序,它将本地摄像头和麦克风连接到 NetStream 以传送到 Flash 媒体服务器。
但是,我还想在文件系统上本地存档传出流的副本。是否可以访问 NetStream 对象的实际字节流(即使在可怕的 mx.internal 命名空间中),我可以将其转而提供给本地存档的 FileStream?
I have a Flex/AIR desktop application that connects a local camera and microphone to a NetStream for delivery to a Flash media server.
However, I would also like to archive a copy of the outgoing stream locally on the filesystem. Is there any access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,这并不完全可能,因为 Flash 是异步的。 Flash(或Air)目前对流的支持还不够好。已经有一些尝试录制视频,但声音是另一回事。
我认为唯一可行的解决方案是将您的 Air 应用程序与您可以将流发送到的“服务器”应用程序打包,然后将文件保存到硬盘驱动器。
Unfortunately, this isn't exactly possible since Flash is asynchronous. Flash (or Air) doesn't have a lot of good support for streams as it is currently. There has been some attempts at recording video, but sound is another thing.
I think the only viable solution would be to package your Air application with a 'server' application that you can send the stream to, which then saves the file to the hard drive.