MPMoviePlayerController缓冲状态 [英] MPMoviePlayerController buffering state

查看:94
本文介绍了MPMoviePlayerController缓冲状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个非常简短的问题:

如何确定MPMoviePlayerController实例是否正在缓冲数据(在这种情况下,是来自Web流的音频数据)?

How can I find out if the MPMoviePlayerController instance is buffering data (in this case audio data from a web stream)?

感谢您的任何帮助,祝您愉快!

Thanks for any kind of help and have a nice day!

推荐答案

您需要注册一个由MPMoviePlayerLoadStateDidChangeNotification通知的对象,然后访问电影播放器​​的loadState.

You need to register an object to be notified by the MPMoviePlayerLoadStateDidChangeNotification and then access the loadState of the movie player.

请参见 MPMoviePlayerController参考.

See the notifications section of the MPMoviePlayerController reference.

这篇关于MPMoviePlayerController缓冲状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆