使用 Apple 的 Http Live Streaming 协议仅将音频流式传输到 iPhone iOS 3.1.3 的最佳选择是什么?

发布于 2024-10-02 11:59:38 字数 481 浏览 1 评论 0原文

我正在构建一个应用程序,用于处理来自使用 Http Live Streaming Protocol 发送信息的服务器的流媒体音乐。
我正在使用 AVPlayer(带有 AVPlayerItem)来解码服务器发送的 m3u8 文件,但此类仅在 iOS 4 中引用。
可以选择使用 MPMoviePlayerController 的 initWithContentUrl: 方法,但在 3.2 之前,无法调整帧大小,它只能全屏播放。我还想创建一个自定义播放器,而此类不适合此目的。
我知道 Matt Gallagher 的 AudioStreamer 类,但这似乎只适用于 mp3。有没有办法让这个类与 Http Live Streaming 一起使用? 有没有办法在 iOS 3.1.3 中仅使用 Http Live Streaming 来传输音频?
谢谢

I'm building an app that deals with streaming music from a server that's using Http Live Streaming Protocol to send the information.
I'm using AVPlayer (with AVPlayerItem) to decode the m3u8 files that the server is sending but this class is only referenced in iOS 4.
There's the option of using MPMoviePlayerController's initWithContentUrl: method but prior to 3.2 there's no way to resize the frame, it only plays in fullscreen. Also I want to create a custom player and this class is not suited to this purpose.
I know about Matt Gallagher's AudioStreamer class, but this only seems to work with mp3. Is there a way to make this class work with Http Live Streaming?
Is there any way to stream audio only using Http Live Streaming in iOS 3.1.3?
Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文