If the embedded content is an
<iframe>, it should work out of the box. However, if the embedded content consists of an HTML element and a
<script> trying to render something into it, it won’t work (I think that’s how Instagram and Facebook embeds work, not sure for JW Player). The reason is that React doesn’t execute
<script>s on load when they are rendered with
The solution is to manually insert those scripts so they execute on load (as described here). In order to do this, our solution for the first version of the framework was an HTML to React converter, where every
<script> would be rendered manually by a React component on mount.
We are planning on implementing a similar component for Frontity again, but in the meanwhile, a solution could be to find the scripts inside the content, once the component is mounted, and manually remove and add the
<script>s to the DOM again, so they execute on load.
I hope this explanation helped you. If you have any doubt, don’t hesitate to ask