AVPlayer rate property does not work?

后端 未结 6 596
既然无缘
既然无缘 2020-12-05 05:45

so it would appear that the only values that actually work are 0.0, 0.5, 1.0, and 2.0...

i tried setting it to 0.25 since I want it to play at 1/4th of the natural s

6条回答
  •  半阙折子戏
    2020-12-05 06:01

    (Xcode 11.6, iOS 13.6, Swift 5)

    It doesn't work with

    player.rate = 2.0
    

    It works with

    player.playImmediately(atRate: 3.0)
    

提交回复
热议问题