Using an iframe in or other website builders with a nested iframe

The Wix HTML widget uses an embedded iframe.

In order to get Mykademy live to work with a nested iframe, you have to also input allow=“camera,microphone” in the end of the body tag:

var iframes = document.querySelectorAll(“iframe”); // finds all iframes
for (var i = 0; i < iframes.length; i++) {
var name = iframes[i].getAttribute(“name”)
if (name.includes(“htmlComp”)) {
iframes[i].setAttribute(“allow”, “microphone; camera”)

Was this article helpful?
0 out of 1 found this helpful