Streaming Audio MMS:// to the iPhone

前端 未结 3 625
南方客
南方客 2020-12-31 12:02

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

相关标签:
3条回答
  • 2020-12-31 12:47

    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];
    
    0 讨论(0)
  • 2020-12-31 12:47

    Use the kxmovie (https://github.com/kolyvan/kxmovie) as example

    I searched in many examples but only this code worked.

    In the url I replace mms:// to mmsh:// - MMS (Microsoft Media Server) protocol over HTTP.

    Look ffmpeg documentation (http://www.ffmpeg.org/ffmpeg-protocols.html#mmst)

    0 讨论(0)
  • 2020-12-31 12:56

    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.

    0 讨论(0)
提交回复
热议问题