Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
let obj = {
			cmd: "freezeResolutionAt",
			x: e.target.width.value,
			y: e.target.height.value
	}
document.getElementById("iframe_1").contentWindow.postMessage(JSON.stringify(obj), "*");

Here iframe_1 is the id of the iframe element.

Code Block
<iframe
    allow="camera;microphone"
    style="visibility: hidden"
    id="iframe_1"
    src="https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/E3DS-Iframe-Demo"
    width="100%"
    height="100%"
    allowfullscreen
    >
</iframe>


To learn more about how to communicate with your unreal app from your webpage follow the document: Communicate with your App from iframe - HTML

...