Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了在指定的时间调用一些事件,例如,当视频到 10.0s 或 20.0s 时,应该有一些事件被调用,是否可以观察 MPMoviePlayerController 实例的某些属性对于这种情况? 或任何其他解决方案?
我必须做几乎相同的事情,除了使用我自己的 NSTimer 并查看 MPMoviePlayer 的当前时间之外,我没有找到任何好的解决方案......
所以基本上,我每秒钟都在看现在是什么时间,当我对时间感兴趣时,我会做我的事情。