Function updateRecording

Updates the recording state based on the provided parameters.

updateRecording({
parameters: {
roomName: 'Room101',
socket: mySocket,
localSocket: myLocalSocket,
updateIsRecordingModalVisible: setIsRecordingModalVisible,
confirmedToRecord: true,
showAlert: myShowAlert,
recordingMediaOptions: 'video',
videoAlreadyOn: true,
audioAlreadyOn: true,
recordStarted: false,
recordPaused: false,
recordResumed: false,
recordStopped: false,
recordChangeSeconds: 3,
pauseRecordCount: 0,
startReport: false,
endReport: false,
canRecord: true,
canPauseResume: true,
updateCanPauseResume: setCanPauseResume,
updatePauseRecordCount: setPauseRecordCount,
updateClearedToRecord: setClearedToRecord,
updateRecordPaused: setRecordPaused,
updateRecordResumed: setRecordResumed,
updateStartReport: setStartReport,
updateEndReport: setEndReport,
updateCanRecord: setCanRecord,
rePort: myRePortFunction,
},
});