MediaSFU Vue
    Preparing search index...

    Variable startRecordingConst

    startRecording: StartRecordingType

    Starts the recording process based on the provided parameters.

    The options for starting the recording.

    The parameters required for starting the recording.

    The name of the room where recording is to be started.

    User-specific recording parameters.

    The socket instance for communication.

    The local socket instance for communication.

    Function to update the visibility of the recording modal.

    Flag indicating if the user has confirmed to record.

    Function to show alerts.

    The media options for recording (e.g., "video", "audio").

    Flag indicating if the video is already on.

    Flag indicating if the audio is already on.

    Flag indicating if the recording has started.

    Flag indicating if the recording is paused.

    Flag indicating if the recording is resumed.

    Flag indicating if the recording is stopped.

    Flag indicating if the start report is active.

    Flag indicating if the end report is active.

    Flag indicating if recording is allowed.

    Function to update the cleared to record status.

    Function to update the record started status.

    Function to update the record paused status.

    Function to update the record resumed status.

    Function to update the start report status.

    Function to update the end report status.

    Function to update the can record status.

    Flag indicating if the whiteboard has started.

    Flag indicating if the whiteboard has ended.

    Function to report the recording status.

    Function to capture the canvas stream.

    • A promise that resolves to a boolean indicating if the recording attempt was successful, or undefined if not applicable.
    startRecording({
    parameters: {
    roomName: "Room101",
    userRecordingParams: myUserRecordingParams,
    socket: mySocket,
    localSocket: myLocalSocket,
    updateIsRecordingModalVisible: setIsRecordingModalVisible,
    confirmedToRecord: true,
    showAlert: myShowAlert,
    recordingMediaOptions: "video",
    videoAlreadyOn: true,
    audioAlreadyOn: true,
    recordStarted: false,
    recordPaused: false,
    recordResumed: false,
    recordStopped: false,
    startReport: false,
    endReport: false,
    canRecord: true,
    updateClearedToRecord: setClearedToRecord,
    updateRecordStarted: setRecordStarted,
    updateRecordPaused: setRecordPaused,
    updateRecordResumed: setRecordResumed,
    updateStartReport: setStartReport,
    updateEndReport: setEndReport,
    updateCanRecord: setCanRecord,
    whiteboardStarted: true,
    whiteboardEnded: false,
    rePort: myRePort,
    captureCanvasStream: myCaptureCanvasStream,
    },
    })