开发者

Are there open source audio stream clients or frameworks?

开发者 https://www.devze.com 2022-12-18 13:36 出处:网络
I\'m looking for how to play back audio streams in these formats: MP3 Ogg / Vorbis WMA over MMS/ASF AAC / AAC+

I'm looking for how to play back audio streams in these formats:

  • MP3
  • Ogg / Vorbis
  • WMA over MMS/ASF
  • AAC / AAC+

target is the mac and iPhone. Maybe there i开发者_如何学Cs an open source library that I could look at, to understand how it works, and then port it to the cocoa frameworks somehow.


I'd take a look at FFmpeg. It's the most widely used opensource codec library and can be compiled for the iPhone. It has RTSP support (Microsoft deprecated MMS streams in 2003 and most current mms:// streams are actually just RTSP.

You don't actually need to port C/C++ libraries to Cocoa to be able to use them with Cocoa/Objective-C. You can use C libraries directly and C++ ones with Objective-C++ or using a C wrapper.

Or are you worrying about the license? Many parts of FFmpeg are LGPL and can be used from proprietary applications.


I'm not sure about iPhone, but gstreamer is pretty portable.


Have you looked at OpenAL or Ogg? I haven't used either personally but it's a good starting point.


TuneIn Radio uses code from FFmpeg and LibMMS, both licensed under the LGPLv2.1. Source code, including modifications, for both libraries can be downloaded here http://tunein.com/mobile/ios/tunein_radio_source.zip

0

精彩评论

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

关注公众号