Concepts
AudioPlay
AudioPlay represents an audio track that can be added to a clip or specific Elements
AudioPlay allows you to incorporate music, sound effects, voiceovers, or any other audio content into your video projects.
Properties
Property | Type | Default | Description |
---|---|---|---|
id | string | uuid() | A unique identifier for the AudioPlay. |
url | string | - | The URL of the audio file |
name | string | - | A short name for the audio track |
startTime | number | 0 | The time (in seconds) when the audio begins |
endTime | number | - | The time (in seconds) when the audio ends |
volume | number | 1 | The volume level of the audio track (0 to 1) |
fade | object | null | (Optional) The fade in and fade out in seconds |
Usage
Here’s an example of how to create and add an AudioPlay object to a clip:
You can create smooth fades in and out by fade properties