获取已播放电影的当前位置(MPMoviePlayerController currentPlaybackTime不起作用) [英] Get the current position of a played movie (MPMoviePlayerController currentPlaybackTime doesn't work)

查看:118
本文介绍了获取已播放电影的当前位置(MPMoviePlayerController currentPlaybackTime不起作用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人能给出答案-我现在正在搜索几个小时. 我想知道电影的位置.

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不起作用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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