为WMA音频文件的iPhone无线流媒体

时间:2021-02-21 18:59:46

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.

我需要在服务器上实现WMA音频文件的iphone流媒体功能。iPhone只能支持mp3, wav, aac音频文件。但我需要为iphone收音机应用程序播放wma音频流。

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

谁能告诉我怎么做这件事吗?我真的很感谢你的帮助。提前谢谢。

3 个解决方案

#1


3  

Basically impossible unless you feel like writing your own decoder. The iPhone doesn't support WMA and that's kind of the end of it.

基本上不可能,除非你想自己写解码器。iPhone不支持WMA,这是它的结尾。

#2


1  

I totally agree with Noah Witherspoon. Just adding one step, for handling audio streaming you should look at this

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

Hope this helps.

希望这个有帮助。

#3


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.

对于wma,您应该使用FFmpeg库。FFmpeg将能够解码wma音频流并连接到mms音频流。

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.

如果您做一些研究,您将找到为iOS平台编译静态FFmpeg库的方法。一旦设置了静态FFmpeg库,就可以连接到音频流并开始解码。要播放解码后的音频包,您需要使用AudioQueue框架。基本上,您将解码后的音频数据传递给AudioQueue,并告诉它播放FFmpeg提供给您的解码数据填充的缓冲区。

#1


3  

Basically impossible unless you feel like writing your own decoder. The iPhone doesn't support WMA and that's kind of the end of it.

基本上不可能,除非你想自己写解码器。iPhone不支持WMA,这是它的结尾。

#2


1  

I totally agree with Noah Witherspoon. Just adding one step, for handling audio streaming you should look at this

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

Hope this helps.

希望这个有帮助。

#3


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.

对于wma,您应该使用FFmpeg库。FFmpeg将能够解码wma音频流并连接到mms音频流。

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.

如果您做一些研究,您将找到为iOS平台编译静态FFmpeg库的方法。一旦设置了静态FFmpeg库,就可以连接到音频流并开始解码。要播放解码后的音频包,您需要使用AudioQueue框架。基本上,您将解码后的音频数据传递给AudioQueue,并告诉它播放FFmpeg提供给您的解码数据填充的缓冲区。