MPMoviePlayerController 预加载进度
有没有办法获取 MPMoviePlayerController 的预加载进度?
目前,我正在监听 MPMoviePlayerLoadStateDidChangeNotification
并显示 UIActivityView,直到 loadState
为 MPMovieLoadStatePlayable || MPMovieLoadStatePlaythroughOK
。
然而,这可能需要几秒钟,所以我想显示一个 UIProgressView,以便最终用户可以了解他们在视频开始之前需要等待多长时间。
是否可以在不使用私人呼叫的情况下实现这一点(应用程序将提交到应用程序商店)?
Is there a way of getting the preload progress of a MPMoviePlayerController?
At the moment I'm listening to for MPMoviePlayerLoadStateDidChangeNotification
and showing a UIActivityView until the loadState
is MPMovieLoadStatePlayable || MPMovieLoadStatePlaythroughOK
.
However this can take a few seconds so I'd like to show a UIProgressView instead, so that the end user can I get an idea of how long they have to wait before the video will start.
Is this possible without using private calls (the app will be submitted to the app store)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此功能不可用。如果您认为应该如此,请在 http://bugreport.apple.com 提交功能请求。苹果会跟踪人们的请求,如果有足够的兴趣,他们就会添加此请求。
This functionality is not available. If you feel that it should be then please file a feature request at http://bugreport.apple.com. Apple keeps track of what people request and if there is sufficient interest they will add this.
在 iOS 5.x 之前,我曾经能够显示一个进度条,指示使用 playableDuration 属性缓冲了多少流。不过iOS5.x之后这个好像不行了。
Prior to iOS 5.x I used to be able to show a progress bar that indicates how much of the stream is buffered using the playableDuration property. However, this doesn't seem to work after iOS5.x.