以1.5倍速,2倍速播放视频文件 [英] Playing video file with 1.5x, 2x speed

查看:637
本文介绍了以1.5倍速,2倍速播放视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名iOS开发人员,应该制作应用以各种速度播放视频。
我认为没有API可以改变 MPMoviePlayerController 的回放速度。

I am an iOS developer who should make an app to play video with various speed. I think there is no API to change playback speed on MPMoviePlayerController.

我不能找到任何解决方案。

And I couldn't find any solutions.

您能否告诉我如何实施?
或者你能告诉我任何支持iOS上述功能的框架/库(SDK)吗?

Can you please tell me how to implement it? or Can you please tell me any Framework/library(SDK) that support above functions for iOS?

推荐答案

那里实际上是这样的财产。

There actually is such property.

MPMoviePlayerController 遵守 MPMediaPlayback protocol

参见

currentPlaybackRate




播放器的当前播放速率。 (必填)

The current playback rate for the player. (required)



@property(nonatomic) float currentPlaybackRate




讨论

Discussion

此值表示乘数当前项目的默认播放率
。值0.0表示播放停止
,而值1.0表示播放正常
速度。正值表示正向播放,而负值
表示反向播放。

This value represents a multiplier for the default playback rate of the current item. A value of 0.0 indicates that playback is stopped while a value of 1.0 indicates that playback is occurring at normal speed. Positive values indicate forward playback while negative values indicate reverse playback.

设置此属性的值会相应地更改播放速率

Setting the value of this property changes the playback rate accordingly.

这篇关于以1.5倍速,2倍速播放视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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