forked from mirrors/linphone-iphone
Set default front camera
This commit is contained in:
parent
4eafaa1dc6
commit
ec842f2830
2 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue