ReadonlycontainerOptional ReadonlysrcOptional ReadonlysourceOptional ReadonlyautoOptional ReadonlyloopOptional ReadonlyplaybackOptional ReadonlymutedOptional ReadonlyfitOptional ReadonlymaxCaps Pixi's render resolution relative to device pixels.
Lower values reduce GPU memory and fill-rate pressure. For example, capping a Retina display from DPR 2 to 1 renders one quarter as many pixels, which can be useful for long videos or browsers under load.
Optional ReadonlypixelShow distinct source pixels when the media-to-screen scale reaches
minScale CSS pixels per natural media pixel (including contain/cover
fit). Below that positive, finite threshold, media is smoothly sampled.
Omit to retain smooth sampling at every zoom. Annotation styles and the
source pixels returned by captureFrame are unaffected.
Optional ReadonlydetectionOptional ReadonlydetectionOptional ReadonlydetectionOptional ReadonlydetectionAligns detection timestamps with media whose first presentation timestamp
is not zero. Defaults to MediaTimeline for backward compatibility.
Optional ReadonlydepthDepth drawn by depth annotation renderers, separate from detection
frames. A map whose aspect ratio differs from the media's puts the
renderer in its error state. A manifest loads once the media's first
frame is up; one that fails leaves the media playing without depth.
Optional ReadonlyinteractionOptional ReadonlyrenderOptional ReadonlydiagnosticsOptional ReadonlyeditingOptional ReadonlymaskOptional ReadonlycreateCreates a media-sized brush preview after the source metadata is known.
Optional ReadonlypreviewOptional ReadonlyonOptional ReadonlyonOptional ReadonlyonOptional ReadonlybackgroundRenderer canvas color shown around media that is letterboxed or not yet presented. Hosts can update this with their color theme without recreating the media session.
Optional ReadonlyannotationOptional ReadonlyannotationSmooth annotation edges independently of video and canvas resolution.
Applies to fills, borders, focus and interaction overlays. Media
region effects smooth their coverage while preserving the sampled video.
true enables FXAA at output density; 2 captures at twice that density.
Label backgrounds are smoothed while text stays sharp. Separated label runs
share captures; overlaps split captures to preserve blending and draw order.
Defaults to false.
The 2× capture preserves more mask detail, up to the original
resolution, increasing preparation work, cache bytes and GPU memory.
Optional ReadonlyrenderersBuilt-in renderers that contribute semantic annotations to the
renderer-owned scene. When present, this list selects the enabled
built-in layers. Style-backed descriptors resolve into their established
presentation fields, while direct descriptors such as region retain
their semantic configuration for the backend. Existing style fields remain
supported for compatibility and source-specific presentation overrides.
Optional ReadonlyboxOptional ReadonlyboxOptional ReadonlyfocusOptional ReadonlyinteractionOptional ReadonlylabelOptional ReadonlymaskOptional ReadonlymaskOptional ReadonlymarkerOptional ReadonlyorientedOptional ReadonlypercentageOptional ReadonlypolygonOptional ReadonlypolylineOptional ReadonlyellipseOptional ReadonlykeypointOptional Readonlyvisibility
Lower-level renderer options.
Most applications should prefer
createMediaSession, which wires media preparation, detection buffering, and render preparation with defaults.