@mocanvas/mocanvas · function

getVideoSource

declare function getVideoSource(editor: Editor, shape: VideoShape): string | null

The file the shape plays: the asset's src, or null when there is no asset yet, the asset is still uploading, or it is not a video.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.