avplayerview

Add Trick Play feature with AVPlayerViewController in Swift

北城以北 提交于 2019-12-11 10:38:47
问题 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: Try playerViewController.player!.rate = 2 // 3, 4 etc 来源: https://stackoverflow.com/questions/42973856/add-trick-play-feature-with-avplayerviewcontroller-in-swift