Script-tag embed

The customer hosts the player themselves: a container div and loader.min.js, which injects the bundle into this page. Materially different for identity, and the difference is not subtle.

Player runs on this page’s own origin — first-party, in the customer’s document
Config comes from data-* attributes only. standAlone() never runs, so query params are not read
Sign-in transport iframe on the Resi origin, nested in a first-party page
This page can read the viewer id yes — unavoidably; see below

The markup

<div
  id="resi-video-player"
  data-embed-id="…"
  data-type="event"
  data-autoplay="false"
  data-identify-viewer="required"></div>

<script src="https://control.jefflowery.dev/webplayer/loader.min.js"></script>

Expected

Messages reaching this page

Expect a red [VIEWER ID] line after a successful sign-in. On this page only, that is the design: the player is running in this document, so the message is addressed to this origin.

nothing yet