konstantin-paulus 8fcf8884b8 Update audio and video documentation to reflect volume changes in decibels
Revise the JSX documentation for `<audio>` and `<video>` components to clarify the `volume` prop, now expressed in decibels instead of a linear scale. Update example usages in the README and ensure consistency across related documentation. Additionally, modify the description of volume handling in the CLI to align with the new decibel representation, enhancing user understanding of audio properties.
2026-07-12 13:57:58 +02:00

1.1 KiB

<video>

A video clip. src resolves to a video asset (see media.md); when timing is omitted, the node fits its natural duration (see timing.md).

<video src="/Movies/main.mp4" start={0} sourceIn={1} sourceOut={13} volume={-3} />

Props

All common props, plus:

Prop Type Default Meaning
src string | AssetRef required See media.md.
objectFit "cover" | "contain" | "fill" "cover" How the source maps into the box.
volume Animatable<number> 0 Decibels: 0 = unity, negative attenuates (-6 ≈ half as loud), -Infinity = silence. Not linear.
muted boolean false Excludes the node's audio from the mix; independent of volume.
syncTo string none Key of another element carrying audio; derives start by audio alignment (see audio-sync.md). Mutually exclusive with start.

A paint child draws over the media paint created by src (see paints.md).