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.
我想将mms:// url流式传输到我的iPhone应用程序,但到目前为止很难获得有关该主题的信息。我知道有几个应用程序可以做到(FStream,WunderRadio,Tuner),我已经阅读了一些关于它们的说明,可能使用libmms和ffmpeg来完成这项任务。
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!
谢谢你的帮助!
3 个解决方案
#1
7
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.
您可以使用libmms库通过HTTP流读取MMS或MMS。这不是直截了当的,但一些现有的应用程序(可能是FStream)使用这种方法。要在iPhone上运行libmms,您可以在WunderRadio站点上找到一些信息:http://www.wunderradio.com/code.html。
#2
2
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.
不幸的是,没有简单的方法可以直接使用iOS SDK播放mms://流。您将不得不使用libmms或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.
如果您不想处理所有这些内容,您可以使用我构建的RadioTunes SDK for iOS框架,它支持http和mms协议,可以播放mp3,aac,aac +和wma音频流。
You can start streaming mms audio streams with the RadioTunes SDK with just 2 lines of code:
您只需2行代码就可以使用RadioTunes SDK开始流式传输mms音频流:
MMSRadio *mmsRadio = [[MMSRadio alloc] initWithURL:[NSURL URLWithString:@"mms://mmsurlhere.com"]];
[mmsRadio play];
#3
0
Use the kxmovie (https://github.com/kolyvan/kxmovie) as example
以kxmovie(https://github.com/kolyvan/kxmovie)为例
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.
在URL中,我将mms://替换为mmsh:// - 基于HTTP的MMS(Microsoft Media Server)协议。
Look ffmpeg documentation (http://www.ffmpeg.org/ffmpeg-protocols.html#mmst)
查看ffmpeg文档(http://www.ffmpeg.org/ffmpeg-protocols.html#mmst)
#1
7
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.
您可以使用libmms库通过HTTP流读取MMS或MMS。这不是直截了当的,但一些现有的应用程序(可能是FStream)使用这种方法。要在iPhone上运行libmms,您可以在WunderRadio站点上找到一些信息:http://www.wunderradio.com/code.html。
#2
2
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.
不幸的是,没有简单的方法可以直接使用iOS SDK播放mms://流。您将不得不使用libmms或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.
如果您不想处理所有这些内容,您可以使用我构建的RadioTunes SDK for iOS框架,它支持http和mms协议,可以播放mp3,aac,aac +和wma音频流。
You can start streaming mms audio streams with the RadioTunes SDK with just 2 lines of code:
您只需2行代码就可以使用RadioTunes SDK开始流式传输mms音频流:
MMSRadio *mmsRadio = [[MMSRadio alloc] initWithURL:[NSURL URLWithString:@"mms://mmsurlhere.com"]];
[mmsRadio play];
#3
0
Use the kxmovie (https://github.com/kolyvan/kxmovie) as example
以kxmovie(https://github.com/kolyvan/kxmovie)为例
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.
在URL中,我将mms://替换为mmsh:// - 基于HTTP的MMS(Microsoft Media Server)协议。
Look ffmpeg documentation (http://www.ffmpeg.org/ffmpeg-protocols.html#mmst)
查看ffmpeg文档(http://www.ffmpeg.org/ffmpeg-protocols.html#mmst)