Skip to main content

createVideoAsync

Creates a Video object from the raw bytes of a file content. Like Image objects, Video objects are not nodes. They are handles to images stored by Figma. Frame backgrounds, or fills of shapes (e.g. a rectangle) may contain videos.

Signature

createVideoAsync(data: Uint8Array): Promise<Video>

Remarks

The data passed in must be encoded as a MP4. Videos have a maximum size of 30MB. Invalid videos will throw an error.

Video can only be added to files in a paid Education, Professional, and Organization team. Plugins running on files in free Starter teams can edit existing video in a file but not upload video to it.

On this page