Concerns (14/14)

Embeddable URL

Open URL

Widget ID

Parent Origin (optional)

Injects window.__PHYCO_IFRAME_PARENT_ORIGIN__ so embed messages only target your site domain.

Embed Code Snippet

<script>
  window.__PHYCO_IFRAME_PARENT_ORIGIN__ = "https://www.example.com";
</script>
<iframe
  src="/camera-embeddable?widgetId=YOUR_WIDGET_ID"
  allow="camera; microphone"
  style="width: 100%; height: 900px; border: 0;"
></iframe>

<script src="/embed/phyco-camera.js"></script>
<script>
  window.PhycoCamera.attach({
    widgetId: "YOUR_WIDGET_ID",
    iframe: document.querySelector('iframe'),
    autoResize: true,
    config: { storage: "s3-proxy", captureTier: "hd" }
  });
</script>