获取已播放电影的当前位置(MPMoviePlayerController currentPlaybackTime 不起作用)
希望有人有答案 - 我现在正在寻找几个小时。 我想获得电影的位置。
我用 MPMoviePlayerController 尝试过,但此类不支持名为“currentPlaybackTime”的 MPMediaPlayback 属性。 (有趣的是,MP Music PlayerController 有这个属性)
因此我无法获取视频中的位置。还有其他方法吗???
预先非常感谢您!
hopefully someone has an answer - I am searching now for hours.
I want to get the position of an movie.
I tried it with MPMoviePlayerController, but this class doesn't support the MPMediaPlayback property called "currentPlaybackTime".
(the funny thing is, that the MP Music PlayerController has this property)
Therefore I can't get the position in my video. Is there another way to do it???
Thank you very much in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MPMoviePlayerController 符合 MPMediaPlayback 协议,并且具有可用的 currentPlaybackTime 属性。但是,我相信 currentPlaybackTime 属性是在 3.2 中引入的,因此如果您尝试在 3.2 之前的设备上进行开发,它可能无法使用。
MPMoviePlayerController conforms to the MPMediaPlayback protocol, and does have a currentPlaybackTime property available. However, I believe that the currentPlaybackTime property was introduced in 3.2, so it may not be available to you if you're trying to develop on a pre-3.2 device.