iPad touch events on <video> tag

前端 未结 1 487
后悔当初
后悔当初 2020-12-10 17:08

I\'m building a javascript-powered gallery on the iPad that can display both images and video. To browse the gallery, you can swipe left or right (similar to the iPad\'s Pho

1条回答
  •  醉梦人生
    2020-12-10 18:12

    Your touch events are being absorbed by the default controls of the player. If you set the video element's controls to false you can have full control of the events on the video element. But doing this means you'll have to implement your own custom controls, which isn't very hard.

    0 讨论(0)
提交回复
热议问题