iPhone,我的 AVPlayer 播放器播放视频速度非常快

发布于 2024-12-04 02:04:46 字数 213 浏览 1 评论 0原文

我的应用程序正在使用 AVPlayer 来播放视频。我的应用程序当前遇到一个严重的问题。有时,它播放视频的速度非常快,尽管我检查以确保设置了 self.player.rate = 0.3self.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

極樂鬼 2024-12-11 02:04:46

我终于知道答案了。我同时调用了 [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 method setRate: already set the rate for the player and play the video already

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文