Sequence

Use sequences to concatenate an array of layers in a composition. If you need to sequence multiple layers as a single unit, see the group documentation.

Sequence layer configuration

The config argument supports the following layer configuration properties:

Examples

Minimal

const video1 = await composition.addVideo(
  "https://editframe.com/docs/composition/layers/sequence/doge-short.mp4"
);

const video2 = await composition.addVideo(
  "https://editframe.com/docs/composition/layers/sequence/drone-lagoon-short.mp4"
);

const video3 = await composition.addVideo(
  "https://editframe.com/docs/composition/layers/sequence/fire-short.mp4"
);

await composition.addSequence([video1, video2, video3]);

Full layer configuration

const video1 = await composition.addVideo(
  "https://editframe.com/docs/composition/layers/sequence/doge-short.mp4"
);
const video2 = await composition.addVideo(
  "https://editframe.com/docs/composition/layers/sequence/drone-lagoon-short.mp4"
);
const video3 = await composition.addVideo(
  "https://editframe.com/docs/composition/layers/sequence/fire-short.mp4"
);
await composition.addSequence([video1, video2, video3], {
  timeline: { start: 1 },
});