h5p / h5p-wordpress-plugin

Adds support for H5P Content in WordPress.
https://wordpress.org/plugins/h5p/
71 stars 74 forks source link

H5P interactive video youtube player is not initialized if the placeholder DOM is not :visible #143

Open kelvin-xu opened 2 years ago

kelvin-xu commented 2 years ago

This could be a broader issue and not just with the Interactive video content type. When embedding an Interactive video as an Iframe to another site. If the video is inside an accordion or tab that is not opened by default(with display: none). Then the youtube player as an example will simply not be initialized.

otacke commented 2 years ago

Please consult https://h5p.org/manipulating-h5p-with-javascript and https://h5p.org/comment/19435#comment-19435 on this topic.