Skip to content

Play/pause toggle not working on touch devices #9001

Answered by gkatsev
hebrerillo asked this question in Q&A
Discussion options

You must be logged in to vote

By default, tapping on the video on mobile toggles the visibility of the player controls.

You can try listening to touchstart on the player and if the element is the video element then toggle playback on the player as mentioned in this comment #6923 (comment)

we probably should have an option for this as it's come up a couple of times.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hebrerillo
Comment options

Answer selected by hebrerillo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants