使用蜂窝网络时,使用 MPMoviePlayerController 播放驻留在远程服务器上的视频是否需要限制比特率?

发布于 2024-10-21 18:11:52 字数 423 浏览 14 评论 0原文

在我的应用程序中,我使用 MPMoviePlayerController 来播放驻留在远程服务器上的视频文件(不是流媒体源)。我看到这篇帖子,我想知道我的应用程序可能会因“传输过多数据”而被拒绝(我的一些视频约为 30 MB)。 MPMoviePlayerController 是否有内置方法来限制使用蜂窝网络时的下载速率,或者是我们(开发人员)要求某种东西来控制它?如果第二个答案是正确的,除了仅使用 MPMoviePlayerController 和无线网络之外,我还能做什么?我的 MPMoviePlayerController 参考文献没有提到这个问题。

提前致谢!

In my app among other things, I am using MPMoviePlayerController to play video files (not streaming source) that reside on a remote server. I saw this post and I am wondering if my app can be rejected for “transferring excessive volumes of data” (some of my videos are about 30 MB). Does MPMoviePlayerController have a built in way to limit the downloading rate when using the cellular network or is it us, developers that wave to to something to controll that? And if the second anwer is the correct one what can I do besides using the MPMoviePlayerController only with wireless network? I the MPMoviePlayerController reference mentions nothing about this issue.

Thanks in advance!

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

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

发布评论

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

评论(1

能否归途做我良人 2024-10-28 18:11:52

您应该真正考虑使用流式传输。强迫用户在真正能够观看某些内容之前下载 30mb 的电影数据并不是最新技术。通过 HTTP 设置流媒体源并不难。在 m3u8-snippet 中,您将能够根据可用带宽提供单独的编码/配置文件。作为开发人员,适当的编码/配置文件的实际选择对于您来说是完全透明的 - MPMoviePlayerController 为您实现了这一点。

编辑:哎呀,注意到我没有真正回答你的问题 - 简而言之,MPMoviePlayerController 没有提供你正在寻找的东西。相反,您可能想要使用 ASIHTTPRequest,它允许在带宽限制下进行 HTTP 下载。

来自 Apple 文档(HTTP 直播概述):


应用程序要求

警告:提交在 App Store 中分发的应用程序必须符合这些要求。
如果您的应用程序通过蜂窝网络传输视频,并且视频时长超过 10 分钟或五分钟内数据量超过 5 MB,则您需要使用 HTTP Live Streaming。 (渐进式下载可用于较小的剪辑。)

如果您的应用通过蜂窝网络使用 HTTP Live Streaming,则您需要提供至少一个 64 Kbps 或更低带宽的流(低带宽流可能是纯音频或音频)与静止图像)。

这些要求适用于提交在 App Store 中分发以在 Apple 产品上使用的应用程序。 Apple 可能会自行决定拒绝或删除不合规的应用程序。


You should really consider using streaming instead. Forcing a user to download 30mb of movie data before actually being able to see something is just not state of the art. Setting up a streaming source via HTTP is not that hard. Within the m3u8-snippet, you will be able to provide separate encodings/profiles depending on the available bandwidth. The actual selection of the appropriate encoding/profile will happen totally transparently for you as a developer - MPMoviePlayerController does that magic for you.

EDIT: oops, noticed I did not really answer your question to the point - in short, MPMoviePlayerController does not provide what you are looking for. Instead, your might want to use ASIHTTPRequest which does allow HTTP-download with bandwidth restrictions.

From Apple's documents (HTTP Live Streaming Overview):


Requirements for Apps

Warning: Apps submitted for distribution in the App Store must conform to these requirements.
If your app delivers video over cellular networks, and the video exceeds either 10 minutes duration or 5 MB of data in a five minute period, you are required to use HTTP Live Streaming. (Progressive download may be used for smaller clips.)

If your app uses HTTP Live Streaming over cellular networks, you are required to provide at least one stream at 64 Kbps or lower bandwidth (the low-bandwidth stream may be audio-only or audio with a still image).

These requirements apply to apps submitted for distribution in the App Store for use on Apple products. Non-compliant apps may be rejected or removed, at the discretion of Apple.


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