1

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?

Rhythmic Fistman
  • 34,352
  • 5
  • 87
  • 159
May Phyu
  • 895
  • 3
  • 23
  • 47

1 Answers1

0

Try

playerViewController.player!.rate = 2  // 3, 4 etc
Rhythmic Fistman
  • 34,352
  • 5
  • 87
  • 159