gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 04:40:24 28 4
gpt4 key购买 nike

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

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com