将音频 MMS:// 流式传输到 iPhone

发布于 2024-07-30 05:05:01 字数 325 浏览 2 评论 0原文

我想将 mms:// url 传输到我的 iPhone 应用程序,但到目前为止,很难获得有关该主题的信息。 我知道有几个应用程序已经可以做到这一点(FStream、WunderRadio、Tuner),并且我已经阅读了一些关于它们可能使用 libmms 和 ffmpeg 来完成此任务的注释。

有谁知道如何实现这一目标? 是否有我缺少的图书馆,或者已经有一些例子可以做到这一点? 我希望这会像简单的

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

感谢您的帮助!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

想挽留 2024-08-06 05:05:02

不幸的是,没有简单的方法可以直接使用 iOS SDK 播放 mms:// 流。 您必须使用第三方库,例如 libmms 或 FFmpeg。

如果您不想处理所有这些内容,您可以使用 RadioTunes SDK for iOS 我构建的框架,支持http和mms协议,可以播放mp3、aac、aac+和wma音频流。

您只需 2 行代码即可使用 RadioTunes SDK 开始传输彩信音频流:

MMSRadio *mmsRadio = [[MMSRadio alloc] initWithURL:[NSURL URLWithString:@"mms://mmsurlhere.com"]];
[mmsRadio play];

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];
血之狂魔 2024-08-06 05:05:02

使用 kxmovie (https://github.com/kolyvan/kxmovie) 作为示例,

我在许多示例中搜索但只有这段代码有效。

在 url 中,我将 mms:// 替换为 mmsh:// - 基于 HTTP 的 MMS(Microsoft 媒体服务器)协议。

查看 ffmpeg 文档 (http://www.ffmpeg.org/ffmpeg-protocols.html#mmst )

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)

缺⑴份安定 2024-08-06 05:05:01

您可以使用 libmms 库读取 MMS 或通过 HTTP 流的 MMS。 这并不简单,但一些现有应用程序(可能还有 FStream)使用这种方法。 要让 libmms 在 iPhone 上运行,您可以在 WunderRadio 站点上找到一些信息:http://www.libmms.com wunderradio.com/code.html

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文