Paul Paul - 1 year ago 100
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.


iframe(src = '' frameborder = '0', allowfullscreen = '')

Answer Source

adding a display: block to iframe solved my problem

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download