iphone - 以 1.5 倍速、2 倍速播放视频文件

标签 iphone ios video mpmovieplayercontroller

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

而且我找不到任何解决方案。

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

最佳答案

居然有这样的属性。

MPMoviePlayerController 遵守 MPMediaPlayback protocol

currentPlaybackRate

The current playback rate for the player. (required)

@property(nonatomic) float currentPlaybackRate

Discussion

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.

关于iphone - 以 1.5 倍速、2 倍速播放视频文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9050631/

相关文章:

ios - UITabBar 最佳实践

iphone - 动画开始但似乎没有继续

iphone - 自动释放或之后立即释放哪个更好?

ios - 如何在 UInt8 数组中存储负数

javascript - Video.js - loadeddata 事件永远不会触发

jquery - 如何在 DOM 之后加载视频 HTML5 并循环播放?

css - 获取具有相同相对大小的视频的div

iphone - 我可以在不通过 NSEntityDescription 的情况下创建自定义托管对象类的新实例吗?

iphone - 通过代码使 UINavigationController 返回

ios - textFieldShouldEndEditing 故障?