Video
This object is handle to a video stored in Figma.
Like images, instead of video layers, Figma has video fills VideoPaint
. In fact, dragging a video into Figma creates a rectangle with an video fill. Creating a video on the canvas requires creating a rectangle (or other shape), following by adding a video fill to it.
New videos can be created via figma.createVideoAsync
from a Uint8Array
containing the bytes of the video file.
Figma supports MP4 files. Videos can be up to 30 MB in size. 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.
Video
hash: string [readonly]
A unique hash of the contents of the video file.