Taos API Reference
    Preparing search index...

    Interface VideoSource

    A playing video. Content changes per frame, so it can't be atlased.

    interface VideoSource {
        kind: "video";
        video: HTMLVideoElement;
        backend: VideoBackend;
        texture?: GPUTexture;
    }
    Index

    Properties

    kind: "video"
    backend: VideoBackend

    'copy' (default) uploads the current frame into texture each frame; 'external' imports a zero-copy GPUExternalTexture instead.

    texture?: GPUTexture

    Destination texture for the 'copy' backend; created/owned by the caller or the projector feature. Unused for 'external'.