Refactored JSX elements from lowercase to PascalCase, including `<scene>` to `<Scene>`, `<text>` to `<Text>`, and others, to improve consistency and clarity in the codebase. Updated related documentation to reflect these changes, ensuring that the usage of JSX elements aligns with the new naming conventions. This update enhances the overall readability and usability of the JSX API.
1.1 KiB
1.1 KiB
<Audio>
An audio clip: no visual output, no spatial props; carries volume. When timing is omitted, the node fits its natural duration (see timing.md).
<Audio src="https://my.videoarchive.com/audio/clip.wav" start={2.2} sourceOut={16} volume={-6} />
Props
| Prop | Type | Default | Meaning |
|---|---|---|---|
src |
string | AssetRef |
required | See media.md. |
name |
string |
none | Human-readable node name. |
start, end, sourceIn, sourceOut |
Time |
see timing.md | Temporal placement. |
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. |
animations |
AnimationSpec[] |
none | Preset in/out animations (see animations.md); only "gain" is audible. |