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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!