更改 MPMoviePlayer 寻找速率
我想知道是否有可能改变电影的追求。
我看到这个
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
属性 currentPlaybackRate(在 MPMediaPlayback.h 中声明)是一个浮点数,您可以设置它来调整播放速度。 例如:
The property currentPlaybackRate (declared in MPMediaPlayback.h) is a float which you can set to adjust your playback speed. eg: