iPhone,我的 AVPlayer 播放器播放视频速度非常快
我的应用程序正在使用 AVPlayer 来播放视频。我的应用程序当前遇到一个严重的问题。有时,它播放视频的速度非常快,尽管我检查以确保设置了 self.player.rate = 0.3
或 self.player.rate = 1
或根本不设定费率。这种情况有时会发生,而且我拥有的所有视频都会发生这种情况。
谁能给我关于当前问题的任何提示?
My application is using AVPlayer to play video. There is a serious problem that my app currently experience. Sometimes, it is playing the video very fast although I checked to make sure that I either set the self.player.rate = 0.3
or self.player.rate = 1
or not set the rate at all. This only happens sometimes and it happens to all the videos I have.
Can anyone give me any hint on the current problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于知道答案了。我同时调用了
[player setRate:0.3]
和[player play]
,第二个调用覆盖了第一个调用,这将速率设置为 0(正常) 。方法setRate:
已设置播放器的速率并已播放视频I finally know the answer. I called
[player setRate:0.3]
and[player play]
at the same time and the second call override the first call, which sets the rate to be 0 (normal). The methodsetRate:
already set the rate for the player and play the video already