Member Junction
    Preparing search index...
    MediaWorkerCommand:
        | {
            args: NativeConnectArgs;
            id: string;
            options: MediaWorkerClientOptions;
            type: "connect";
        }
        | { pcm: ArrayBuffer; type: "publishAudio" }
        | { type: "flushOutbound" }
        | { chunk: NativeAvatarMediaChunk; type: "publishAvatarMedia" }
        | { id: string; text: string; type: "publishData" }
        | { id: string; type: "disconnect" }
        | { id: string; type: "getTelemetry" }

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

    Type Declaration

    • {
          args: NativeConnectArgs;
          id: string;
          options: MediaWorkerClientOptions;
          type: "connect";
      }
    • { pcm: ArrayBuffer; type: "publishAudio" }
    • { type: "flushOutbound" }
    • { chunk: NativeAvatarMediaChunk; type: "publishAvatarMedia" }

      One piece of the agent's live avatar (the bot's only video out); its data buffer is in the transfer list (not copied).

    • { id: string; text: string; type: "publishData" }
    • { id: string; type: "disconnect" }
    • { id: string; type: "getTelemetry" }