Member Junction
    Preparing search index...
    MediaWorkerEvent:
        | { type: "ready" }
        | { id: string; result: NativeConnectResult; type: "connected" }
        | { error: string; id: string; type: "commandError" }
        | { id: string; type: "commandSuccess" }
        | { frame: NativeRoomAudioFrame; type: "audioFrame" }
        | { participant: NativeRoomParticipant; type: "participantConnected" }
        | { participantIdentity: string; type: "participantDisconnected" }
        | { participants: NativeRoomParticipant[]; type: "rosterSnapshot" }
        | { reason?: string; type: "disconnected" }
        | { id: string; snapshot: RoomAudioTelemetrySnapshot; type: "telemetry" }
        | { error: string; type: "workerError" }
        | { frame: NativeRoomVideoFrame; type: "videoFrame" }
        | { source: NativeRoomVideoSourceEnd; type: "videoSourceEnded" }
        | { status: NativeAvatarStatus; type: "avatarStatus" }

    Events sent from the Media Worker Thread to the Main Thread.

    Type Declaration

    • { type: "ready" }
    • { id: string; result: NativeConnectResult; type: "connected" }
    • { error: string; id: string; type: "commandError" }
    • { id: string; type: "commandSuccess" }
    • { frame: NativeRoomAudioFrame; type: "audioFrame" }
    • { participant: NativeRoomParticipant; type: "participantConnected" }
    • { participantIdentity: string; type: "participantDisconnected" }
    • { participants: NativeRoomParticipant[]; type: "rosterSnapshot" }

      Full remote roster, sent after every successful join (including rejoins), before connected.

    • { reason?: string; type: "disconnected" }
    • { id: string; snapshot: RoomAudioTelemetrySnapshot; type: "telemetry" }
    • { error: string; type: "workerError" }
    • { frame: NativeRoomVideoFrame; type: "videoFrame" }

      A sampled JPEG frame of a person's camera or screen; its data buffer is in the transfer list (not copied).

    • { source: NativeRoomVideoSourceEnd; type: "videoSourceEnded" }

      A camera or screen the in-worker client stopped reading after sending frames.

    • { status: NativeAvatarStatus; type: "avatarStatus" }

      A change in what the room is shown of the agent's avatar (published, or taken down).