The Wix HTML widget uses an embedded iframe.
In order to get keymeeting 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”)
}
}
Post your comment on this topic.