Paul Paul - 1 month ago 10
Jade Question

iframe video won't play on mobile phone when touched

I imported a youtube video using `iframe, but it doesn't work on mobile, but runs perfectly on desktop.

By not working, I mean: the video doesn't start playing when it is touched and if it's double touched, the page zooms in.

code:

div#video
iframe(src = 'https://www.youtube.com/embed/mfB19N3ZdS0' frameborder = '0', allowfullscreen = '')

Answer

adding a display: block to iframe solved my problem

Comments