问题描述
希望有人能给出答案-我现在正在搜索几个小时.我想知道电影的位置.
hopefully someone has an answer - I am searching now for hours.I want to get the position of an movie.
我使用MPMoviePlayerController进行了尝试,但是此类不支持称为"currentPlaybackTime"的MPMediaPlayback属性.(有趣的是,MP 音乐 PlayerController拥有此属性)
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???
非常感谢您!
推荐答案
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.
这篇关于获取已播放电影的当前位置(MPMoviePlayerController currentPlaybackTime不起作用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!