更改 MPMoviePlayer 寻找速率

发布于 2024-12-24 18:05:54 字数 518 浏览 1 评论 0原文

我想知道是否有可能改变电影的追求。

我看到这个

enum {
MPMoviePlaybackStateStopped,
MPMoviePlaybackStatePlaying,
MPMoviePlaybackStatePaused,
MPMoviePlaybackStateInterrupted,
MPMoviePlaybackStateSeekingForward,
MPMoviePlaybackStateSeekingBackward };

对于每次寻找大约 5 0r 6 秒。我想知道我是否可以改变这一点以减少寻求。大约 0.1 秒。我想做的是向后播放视频。我注意到在 Mac Quicktime 上,如果按住反向按钮,视频将向后播放。我在手机上尝试了同样的操作。如果按住它,它会向后跳,而不仅仅是跳到开头。我只是不想跳过部分。即使有点粗略,也还可以,比现在好。

有什么想法吗? 或者我错过了类似 movie player.playback = reverse 之类的东西?

提前致谢! 亚历克斯

I was wondering if it was at all possible to to change the seeking of movie.

I see this

enum {
MPMoviePlaybackStateStopped,
MPMoviePlaybackStatePlaying,
MPMoviePlaybackStatePaused,
MPMoviePlaybackStateInterrupted,
MPMoviePlaybackStateSeekingForward,
MPMoviePlaybackStateSeekingBackward };

For the seeking each time it goes about 5 0r 6 seconds. I was wondering if I could change that to seek less. like .1 of a second. What I am trying to do is play a video backwards. i notices on the mac quicktime if you hold the reverse the video will play backwards. I tried the same on my phone. If you hold it it will skip backwards, not just jump to the beginning. I just don't want the skipping part. Even if it is a little sketchy that is still ok, better than what it is now.

Any ideas?
Or am I missing something like movie player.playback = reverse or something like that?

Thanks in advanced!
Alex

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

栖竹 2024-12-31 18:05:54

属性 currentPlaybackRate(在 MPMediaPlayback.h 中声明)是一个浮点数,您可以设置它来调整播放速度。 例如:

                self.moviePlayerController.currentPlaybackRate = -12.0f; 

The property currentPlaybackRate (declared in MPMediaPlayback.h) is a float which you can set to adjust your playback speed. eg:

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