2015-11-07 53 views
0

我在考虑为玩家的当前时间使用KVO。但是当前时间是一种方法([myPlayer currentTime])而不是属性,KVO会在这种情况下工作吗?如果不是,我如何跟踪视频播放的进度并为progressView设置一个浮点数?如何为AVPlayer设置progressView?

回答

0

根据当前时间调用AVPlayer的addPeriodicTimeObserverForInterval:queue:usingBlock:以获取定期回调。当前时间作为参数传递给您的块。

+0

谢谢马特,好像我应该搜索官方文档,然后再问另一个问题:) – WhiteTherewasproblem