robbestad/react-iframe

Support for Mobile Devices?

Opened this issue · 0 comments

Hello, I am using your npm module to render youtube videos. Specifically when a user clicks on an image, a Bootstrap modal will pop up and play the youtube video, which is a form of lazy loading. Everything works great desktop wise.

This would be an image:
image

This would be the modal element activated and using your module to render the corresponding music video:
image

However, the modal element is empty on a mobile device, meaning that the iframe component is not rendered. I was on my iphone using Safari, I'm not sure if it's a compatibility issue. Is there support for mobile devices at all (which would be necessary since everyone shifting away from desktop to mobile)

Thanks for any clarification!
*Side note as well: for some reason, allowFullScreen attribute does not seem to be working. I tried allowFullScreen on its own as a way of setting it, and allowFullScreen={"true"} as another way of setting it with JSX syntax