Controlling Video with Gestures

2019-09-16 19:09发布

问题:

I have a video playing a camera rotating around a 3D model. I want to be able to sweep left to right to play the video forwards and right to left to play the video backwards.

Can this be done on iOS 4 and how?

Cheers

回答1:

Add a UISwipeGestureRecognizer to the view that holds the video, and configure it.



回答2:

just add a new transparent view on top of your video and catch touch actions in that layer