Video
Layer configuration
The config
argument supports the following layer configuration properties:
Examples
Minimal
await composition.addVideo(
"https://editframe.com/docs/composition/layers/video/puppy-beach.mp4"
);
Full layer configuration
await composition.addVideo(
// file
"https://editframe.com/docs/composition/layers/video/puppy-beach.mp4",
// config
{
position: {
x: "center",
y: "center",
},
size: {
height: 500,
width: 1000,
},
timeline: {
start: 1,
},
trim: {
start: 0,
end: 4,
},
}
);