switchToDevice method
Rebuilds the session on another device. Recording is stopped first.
Implementation
Future<void> switchToDevice(String deviceId) async {
if (value.isRecording) await stopVideoRecording();
_config = _config.copyWith(deviceId: deviceId);
await suspend();
await initialize();
}