Function switchVideoAlt

Switches the user's video device with alternate logic, taking into account recording state and camera access permissions.

switchVideoAlt({
parameters: {
recordStarted: true,
recordResumed: false,
recordStopped: false,
recordPaused: false,
recordingMediaOptions: 'video',
videoAlreadyOn: true,
currentFacingMode: 'user',
prevFacingMode: 'environment',
allowed: true,
audioOnlyRoom: false,
updateCurrentFacingMode: (mode) => setCurrentFacingMode(mode),
updatePrevFacingMode: (mode) => setPrevFacingMode(mode),
updateIsMediaSettingsModalVisible: (isVisible) => setMediaSettingsModal(isVisible),
showAlert: (alertOptions) => showAlert(alertOptions),
switchUserVideoAlt: switchUserVideoAltFunction,
}
});