MediaSFU React Native
    Preparing search index...

    Function startRecords

    • Starts recording for a specified room.

      Parameters

      • options: StartRecordsOptions

        Configuration options to start the recording.

        • roomName: string
        • member: string
        • socket: Socket

      Returns Promise<void>

      A promise that resolves when the attempt to start recording completes.

      const options = {
      roomName: "RoomA",
      member: "AdminUser",
      socket: socketInstance,
      };

      startRecords(options)
      .then(() => console.log("Recording started successfully"))
      .catch((error) => console.error("Failed to start recording", error));