diff --git a/Linphone/TelecomManager/TelecomManager.swift b/Linphone/TelecomManager/TelecomManager.swift index b51064db2..7f788753a 100644 --- a/Linphone/TelecomManager/TelecomManager.swift +++ b/Linphone/TelecomManager/TelecomManager.swift @@ -620,6 +620,11 @@ class TelecomManager: ObservableObject { //if core.callsNb == 0 { DispatchQueue.main.async { if core.callsNb == 0 { + do { + try core.setVideodevice(newValue: "AV Capture: com.apple.avfoundation.avcapturedevice.built-in_video:1") + } catch _ { + + } withAnimation { self.outgoingCallStarted = false self.callInProgress = false diff --git a/Linphone/UI/Call/ViewModel/MeetingWaitingRoomViewModel.swift b/Linphone/UI/Call/ViewModel/MeetingWaitingRoomViewModel.swift index dd1beeaf8..080d9897e 100644 --- a/Linphone/UI/Call/ViewModel/MeetingWaitingRoomViewModel.swift +++ b/Linphone/UI/Call/ViewModel/MeetingWaitingRoomViewModel.swift @@ -54,6 +54,12 @@ class MeetingWaitingRoomViewModel: ObservableObject { let conf = core.findConferenceInformationFromUri(uri: self.telecomManager.meetingWaitingRoomSelected!) + do { + try core.setVideodevice(newValue: "AV Capture: com.apple.avfoundation.avcapturedevice.built-in_video:1") + } catch _ { + + } + if conf != nil && conf!.uri != nil { let confNameTmp = conf?.subject ?? "Conference" var userNameTmp = "" @@ -129,7 +135,6 @@ class MeetingWaitingRoomViewModel: ObservableObject { DispatchQueue.main.async { self.videoDisplayed = true } - self.videoDisplayed = true core.videoPreviewEnabled = true } }