Optional ReadonlydetectionDetection source used by the renderer. Present when the session was created with static frames, a source, or an appendable source.
ReadonlymediaReadonlyrendererAppend semantic detection frames to a session-owned appendable source.
Optionaloptions: MediaSessionDetectionWriteOptionsOptionaloptions: MediaSessionDetectionWriteOptionsOptionaloptions: MediaSessionDetectionWriteOptionsSummary of frames written through appendDetectionFrames, when available.
Optionaloptions: MediaSessionDetectionWriteOptionsRe-read semantic detections and redraw the current presentation.
Encodes the media frame the session is currently presenting.
The session keeps decode and render ownership; hosts receive an encoded image of the raw media pixels plus the presentation timestamp of that exact frame. Defaults to JPEG.
Optionaloptions: MediaFrameCaptureOptionsAppend the newest live detection frame to a session-owned appendable source.
The frame stays active until the next live frame supersedes it, which is
closed at the new frame's mediaTime. Use this for streams whose producer
only knows that its latest result is current.
Optionaloptions: MediaSessionDetectionWriteOptionsClose the appendable source's final coverage at the end of media.
endTime defaults to the renderer's reported media duration. Calling it
again is a no-op. Use it when a producer has finished, so the source stops
answering for the terminal sliver a container can declare beyond the last
decoded sample. What the sliver would otherwise strand is a waitForRange
caller, and an enabled detection playback gate along with it.
OptionalendTime: numberOptionaloptions: MediaSessionDetectionWriteOptions
Media session that also exposes live detection ingestion.
createMediaSessionreturns this shape. Controllers that only satisfy the historical MediaSession contract stay assignable to it, so live ingestion is an added capability rather than a required one.