TLVideoShapeProps
See source codeConfiguration interface defining properties for video shapes in tldraw. Video shapes can display video content from URLs or asset references, with controls for playback state, timing, and accessibility.
interface TLVideoShapeProps {}
Example
const videoProps: TLVideoShapeProps = {
w: 640,
h: 480,
time: 0,
playing: false,
autoplay: true,
url: 'https://example.com/video.mp4',
assetId: 'asset:video123',
altText: 'Educational video about shapes',
}
Properties
altText
altText: string
assetId
assetId: null | TLAssetId
autoplay
autoplay: boolean
h
h: number
playing
playing: boolean
time
time: number
url
url: string
w
w: number
Prev
TLTextShapePropsNext
VecModel