MediaSFU Shared
    Preparing search index...

    Function startRoomRecording

    • Start recording.

      MediaSFU requires confirmRecording before startRecording — it validates the room's recording settings against the current layout and populates the state startRecording then reads. Calling startRecording alone appears to do nothing. This runs both steps in order.

      Parameters

      Returns Promise<HeadlessActionResult>

      import { startRoomRecording } from 'mediasfu-shared';

      const result = await startRoomRecording({ parameters });
      if (!result.ok) setNotice(result.error);