videoShapeProps
See source codeValidation schema for video shape properties. This defines the runtime validation rules that ensure video shape data integrity, including URL validation, numeric constraints, and proper asset ID formatting.
videoShapeProps: RecordProps<TLVideoShape>
Example
import { videoShapeProps } from '@tldraw/tlschema'
// Validate video URL
const isValidUrl = videoShapeProps.url.isValid('https://example.com/video.mp4')
const isValidTime = videoShapeProps.time.isValid(42.5)
if (isValidUrl && isValidTime) {
// Video properties are valid
}
Prev
videoShapeMigrations