3

I need to implement iphone streaming functionality for WMA audio files from the server. iPhone can support only mp3, wav, aac audio files. But I need to play wma audio streaming for the iphone radio application.

Can anyone tell me how to do this things. I really thankful for your help. Thanks in advance.

4

3 回答 3

3

除非您想编写自己的解码器,否则基本上是不可能的。iPhone 不支持 WMA,这就是它的结束。

于 2010-08-30T12:51:21.947 回答
1

For wma you should use the FFmpeg library. FFmpeg will be able to decode wma audio streams and also connect to mms audio streams.

If you do a little research you'll find ways to compile static FFmpeg libraries for the iOS platform. Once you have the static FFmpeg libraries in place you can connect to audio streams and start decoding. To play the decoded audio packets you'll need to use the AudioQueue framework. Basically you pass the decoded audio data to AudioQueue and tell it to play the buffers filled with the decoded data FFmpeg gave you.

于 2012-04-10T13:07:40.230 回答
1

我完全同意诺亚威瑟斯彭的观点。只需添加一个步骤,对于处理音频流,您应该看看这个

希望这可以帮助。

于 2010-08-30T12:55:01.620 回答