Add Trick Play feature with AVPlayerViewController in Swift

901 Views Asked by At

I implemented a video player function with AVPlayer in Swift 3.
Currently, I can play the video well.
I would like to add the feature of "Trick Play" with the speed of 2x,3x,4x.
However, I didn't find anything googling. Can anyone help me please?

1

There are 1 best solutions below

3
Gordon Childs On

Try

playerViewController.player!.rate = 2  // 3, 4 etc