Lens Scripting API

    Class CameraFrameExposes 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));

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    timestampSeconds: number

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

    Methods

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

      Parameters

      • type: string

      Returns boolean

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

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR