@mocanvas/mocanvas · function
declare function isVideoAutoplayAllowed(editor: Editor | null | undefined): booleanWhether a video may start itself.
Defaults to true — the historical behaviour, where a shape carrying
props.playing starts as soon as it is on screen. An app that sets
options.allowVideoAutoplay: false gets the opposite: no video ever starts
on its own, and one only plays once someone presses play in its controls.
The shape's playing prop is left alone either way, so the setting is a
property of this editor rather than an edit to the document.
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.