Video composition
Composition Attributes
All the options used to instantiate a composition are accessible as instance attributes.
Attribute | Description |
---|---|
backgroundColor | A hex string that defines the background color of your composition |
dimensions | an object containing the height and width of your composition |
duration | the length in time of your composition in seconds |
metadata | an object containing the metadata you have associated with your composition |
Example
composition.backgroundColor; // -> "#000000"
composition.dimensions.height; // -> 1080
composition.dimensions.width; // -> 1920