Builtin Library
README.md
Video
Plays an MP4 video onto a plane mesh attached to this entity. Creates a hidden child entity with a Model + Material that displays the video render target — same pattern as UiPanel's 3D mode. The video renders to a standard render target (rt:video_N), so it can also be used in any material via material.setTexture(...).
Public fields: url, loop, autoplay, rate, width, height (0 = auto aspect), maxResolution, showOverlay.
Methods: play(), pause(), stop(), seek(time), getInfo(), getHandle().
entity(id).component.add("Video", {
url = "@builtin/videos/test_bars.mp4",
loop = true,
autoplay = true,
})