Audio
Audio layers support the the following layer configuration properties:
Minimal
await composition.addAudio(
"https://editframe.com/docs/composition/layers/audio/audio-example.mp3"
);
Full configuration
await composition.addAudio(
"https://editframe.com/docs/composition/layers/audio/audio-example.mp3",
{
volume: 0.5,
},
{
timeline: {
start: 1,
},
trim: {
start: 1.5,
end: 5,
},
}
);