Set default front camera

This commit is contained in:
Benoit Martins 2024-05-06 10:38:49 +02:00
parent 4eafaa1dc6
commit ec842f2830
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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
}
}