GitHub

Video composition

Composition Attributes

All the options used to instantiate a composition are accessible as instance attributes.

AttributeDescription
backgroundColorA hex string that defines the background color of your composition
dimensionsan object containing the height and width of your composition
durationthe length in time of your composition in seconds
metadataan object containing the metadata you have associated with your composition

Example

composition.backgroundColor; // -> "#000000"
composition.dimensions.height; // -> 1080
composition.dimensions.width; // -> 1920
Previous
Adding layers