以2x 3x 4x速度播放/转发视频 - iPhone SDK [英] Play/Forward video in 2x 3x 4x speed - iPhone SDK

查看:212
本文介绍了以2x 3x 4x速度播放/转发视频 - iPhone SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以不同的速度在MPMoviePlayerController中播放/转发视频。任何人都可以建议我如何做到这一点。

I want to play/forward video in MPMoviePlayerController with different speeds. Can any one suggest me how i do this.

现在我正在快进(单速),但在几秒钟后它恢复正常速度。

Right now i am doing fast forward (On single speed) but in few seconds it come back on normal speed.

请建议。

推荐答案

MPMoviePlayerController Conforms to MPMediaPlayback protocol 
you can see the property currentPlaybackRate as :-
@property(nonatomic) float currentPlaybackRate 
A value of 0 represents that the video is stopped , a value of 1 indicates normal speed and further positive values indicate increased speed while negative ones indicate reverse .

同时检查你的MPMediaPlayback的endseeking委托方法,因为它是将播放恢复正常的唯一方法

Also check your endseeking delegate method of MPMediaPlayback as it is the only method that reverts the playback to normal

这篇关于以2x 3x 4x速度播放/转发视频 - iPhone SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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