<!DOCTYPE html>
<h1>Tester for ExperimentalAutoplayDynamicDelegation feature</h1>
<button id="button">Play</button>
<br>
<iframe src="https://codepen.io/mustaqahmed/full/BXyqzp"></iframe>
<script>
  document.getElementById("button").onclick = () => {
    console.log("mDebug: onclick");
    // The test frame is inside Codepen's wrapper frame.
    frames[0].frames[0].postMessage("msg1", {targetOrigin: "*", allowAutoplay: true});
    frames[0].frames[0].postMessage("msg2", {targetOrigin: "*", allowAutoplay: false});
  };
</script>

<!DOCTYPE html>
<h1>Tester for ExperimentalAutoplayDynamicDelegation feature</h1>
<button id="button">Play</button>
<br>
<iframe src="https://codepen.io/mustaqahmed/full/BXyqzp"></iframe>
<script>
  document.getElementById("button").onclick = () => {
    console.log("mDebug: onclick");
    // The test frame is inside Codepen's wrapper frame.
    frames[0].frames[0].postMessage("msg1", {targetOrigin: "*", allow: "autoplay"});
    frames[0].frames[0].postMessage("msg2", {targetOrigin: "*", allow: ""});
  };
</script>

Switch from "allowAutoplay = true" to "allow: 'autoplay'"
Switch from "allowAutoplay = true" to "allow: 'autoplay'"
