InterfaceCameraFrameExperimental Exposes User Data Wearable Only

An entity which provided metadata about the current camera image provided by CameraTextureProvider. Modeled after VideoFrame web API

js let onNewFrame = cameraTexture.control.onNewFrame; let registration = onNewFrame.add((frame) => { let cameraTs = frame.timestampMillis; // ... }); script.onStop.add(() => onNewFrame.remove(registration));

interface CameraFrame {
    timestampMillis: number;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

timestampMillis: number

The timestamp (in milliseconds) in which this frame was received.

Methods

  • Experimental

    Returns the name of this object's type.

    Returns string

  • Experimental

    Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Experimental

    Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean