mediatx test player

WHEP + hls.js test player implementing §8.2 token delivery and the §13 re-call-on-failure contract. Must be served from exactly https://app.stream.localhost — the edge's hlsAllowOrigins/webrtcAllowOrigins reject anything else (C4).

1. Session

/api is proxied by scripts/serve-web.sh to the control-plane API (same-origin — avoids the API's missing CORS headers). Point at a full http://host:port only if that API already sends Access-Control-Allow-Origin for this page's origin.
Session: none

2. Camera

Playback state: idle

3. Recordings (§13.3)

Mints a playback token (POST /v1/cameras/{id}/recordings/token) and calls the playback tier's /list directly — the control plane never carries recorded bytes or the listing (§3).
Recording state: idle

4. Re-call-on-failure (§13)

attempt
0
next retry in
—
Forces the shared reconnect routine to fire without waiting for a real error.

Playback

ICE gathering
—
ICE connection
—
framesDecoded
—
candidate pair
—
playlist/segment reqs
—
currentTime
—
stall detector
—

Transcript (§13 evidence — copyable, also mirrored to console.log with prefix [mediatx-player])