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, }}); Copy
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, }});
The parameters object containing necessary variables.
Switches the user's video device with alternate logic, taking into account recording state and camera access permissions.
Example