Optional ReadonlyonOptional ReadonlymaxMaximum decoded snapshots retained while the renderer is catching up.
Optional ReadonlytimestampTimestamp origin exposed to the renderer. "media" preserves the browser
MediaStream clock. "first-frame" starts the visible timeline at zero so
an independently transported detection stream can apply the same origin.
Defaults to "media".
Optional ReadonlystopStop the caller-supplied MediaStream tracks when the session is destroyed. Defaults to false because WebRTC connection ownership normally stays with the host application.
Receives metadata for each presented frame, before the snapshot is taken.
Called synchronously from the browser frame callback so wall-clock correlation stays accurate. Keep the handler cheap; a handler that throws is ignored and does not interrupt playback.