Stops the recording process based on the provided parameters.
Param: options
The options for stopping the recording.
Param: options.parameters
The parameters required for stopping the recording.
Param: options.parameters.roomName
The name of the room where the recording is being stopped.
Param: options.parameters.socket
The socket instance for communication.
Param: options.parameters.localSocket
The local socket instance for communication.
Param: options.parameters.showAlert
Function to show alerts.
Param: options.parameters.startReport
Flag indicating if the start report is active.
Param: options.parameters.endReport
Flag indicating if the end report is active.
Param: options.parameters.recordStarted
Flag indicating if the recording has started.
Param: options.parameters.recordPaused
Flag indicating if the recording is paused.
Param: options.parameters.recordStopped
Flag indicating if the recording is stopped.
Param: options.parameters.updateRecordPaused
Function to update the record paused status.
Param: options.parameters.updateRecordStopped
Function to update the record stopped status.
Param: options.parameters.updateStartReport
Function to update the start report status.
Param: options.parameters.updateEndReport
Function to update the end report status.
Param: options.parameters.updateShowRecordButtons
Function to update the visibility of recording buttons.
Param: options.parameters.whiteboardStarted
Flag indicating if the whiteboard has started.
Param: options.parameters.whiteboardEnded
Flag indicating if the whiteboard has ended.
Param: options.parameters.recordingMediaOptions
The media options for recording (e.g., "video", "audio").
Param: options.parameters.captureCanvasStream
Function to capture the canvas stream.
Returns
A promise that resolves when the recording is stopped.
Remarks
This method checks if the recording has started and is not already stopped.
It pauses the timer and emits a stop recording event via socket communication.
If successful, it updates the recording state and alerts the user.
Additionally, if the whiteboard feature is active, it captures the canvas stream.
Stops the recording process based on the provided parameters.
Param: options
The options for stopping the recording.
Param: options.parameters
The parameters required for stopping the recording.
Param: options.parameters.roomName
The name of the room where the recording is being stopped.
Param: options.parameters.socket
The socket instance for communication.
Param: options.parameters.localSocket
The local socket instance for communication.
Param: options.parameters.showAlert
Function to show alerts.
Param: options.parameters.startReport
Flag indicating if the start report is active.
Param: options.parameters.endReport
Flag indicating if the end report is active.
Param: options.parameters.recordStarted
Flag indicating if the recording has started.
Param: options.parameters.recordPaused
Flag indicating if the recording is paused.
Param: options.parameters.recordStopped
Flag indicating if the recording is stopped.
Param: options.parameters.updateRecordPaused
Function to update the record paused status.
Param: options.parameters.updateRecordStopped
Function to update the record stopped status.
Param: options.parameters.updateStartReport
Function to update the start report status.
Param: options.parameters.updateEndReport
Function to update the end report status.
Param: options.parameters.updateShowRecordButtons
Function to update the visibility of recording buttons.
Param: options.parameters.whiteboardStarted
Flag indicating if the whiteboard has started.
Param: options.parameters.whiteboardEnded
Flag indicating if the whiteboard has ended.
Param: options.parameters.recordingMediaOptions
The media options for recording (e.g., "video", "audio").
Param: options.parameters.captureCanvasStream
Function to capture the canvas stream.
Returns
Remarks
This method checks if the recording has started and is not already stopped. It pauses the timer and emits a stop recording event via socket communication. If successful, it updates the recording state and alerts the user. Additionally, if the whiteboard feature is active, it captures the canvas stream.
Example