我是一名 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/