开发者

programmatically stream audio with NetStream

开发者 https://www.devze.com 2022-12-15 16:46 出处:网络
In Flex you can stream microphone audio to 开发者_运维知识库an FMS/Red5 server using NetStream.attachAudio, which requires a Microphone object.Is it possible to stream audio through the NetStream from

In Flex you can stream microphone audio to 开发者_运维知识库an FMS/Red5 server using NetStream.attachAudio, which requires a Microphone object. Is it possible to stream audio through the NetStream from somewhere other than a Microphone? For example, from a file/embedded resource?

The reason I'm asking is that I'd like to be able to run automated tests that don't require using an actual microphone.


Well, it looks like this isn't possible. My workaround is to use SoundFlower to route audio file playback (invoked outside of Flash) into a virtual microphone, which Flash then streams to the media server. From Flash's point of view, its just as if you were manually speaking into the mic.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号