Streaming Audio MMS:// to the iPhone

前端 未结 3 666
南方客
南方客 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];
    

提交回复
热议问题