sinch-rtc
    Preparing search index...

    Interface LocalVideoFrameListener

    interface LocalVideoFrameListener {
        onError?: (error: ErrorEvent) => void;
        onMessage?: (message: unknown) => void;
        workerOptions?: Record<string, unknown>;
        workerUrl: string;
    }
    Index

    Properties

    onError?: (error: ErrorEvent) => void

    Optional handler invoked when the worker reports an uncaught error once installed. A failure during installation rejects setLocalVideoFrameListener with an Error instead and is not reported here.

    Nothing is torn down when this fires — the transform just stops producing frames, so outgoing video freezes rather than falling back to the raw camera. This is the only notification of that; without a handler the SDK logs the error.

    Type declaration

      • (error: ErrorEvent): void
      • Parameters

        • error: ErrorEvent

          the ErrorEvent the worker raised.

        Returns void

    onMessage?: (message: unknown) => void
    workerOptions?: Record<string, unknown>
    workerUrl: string