Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Streaming Audio MMS:// to the iPhone

I'd like to stream a mms:// url to my iPhone app, but so far information on the topic is hard to come by. I know there are a couple apps out there that can do it already (FStream, WunderRadio, Tuner), and I've read a few notes about them possibly using libmms and ffmpeg to accomplish this task.

Does anyone know of a way to achieve this? Is there a library out there that I'm missing, or some example to do this already? I was hoping this was going to be as easy as a simple

[someLibrary streamMMSUrl:@"mms://mymmsurlhere.com"]

Thanks for any help!

like image 295
Redth Avatar asked Aug 10 '09 19:08

Redth


2 Answers

You can use the libmms library to read MMS or MMS over HTTP streams. This is not straightforward but some existing apps (and FStream probably) use this approach. To get libmms working on the iPhone, you can find some informations on the WunderRadio site : http://www.wunderradio.com/code.html.

like image 97
pjay_ Avatar answered Nov 02 '22 13:11

pjay_


Unfortunately there's no easy way to play mms:// streams directly with the iOS SDK. You'll have to use a third-party library like libmms or FFmpeg.

If you don't want to deal with all this stuff you can use the RadioTunes SDK for iOS framework I built which supports the http and mms protocols and can play mp3, aac, aac+ and wma audio streams.

You can start streaming mms audio streams with the RadioTunes SDK with just 2 lines of code:

MMSRadio *mmsRadio = [[MMSRadio alloc] initWithURL:[NSURL URLWithString:@"mms://mmsurlhere.com"]];
[mmsRadio play];
like image 25
Kemal Taskin Avatar answered Nov 02 '22 12:11

Kemal Taskin