获取已播放电影的当前位置(MPMoviePlayerController currentPlaybackTime 不起作用)

发布于 2024-09-27 20:19:39 字数 236 浏览 0 评论 0原文

希望有人有答案 - 我现在正在寻找几个小时。 我想获得电影的位置。

我用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油焖大侠 2024-10-04 20:19:39

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文