forked from mirrors/linphone-iphone
Fix camera switch in swift
This commit is contained in:
parent
1e45f7d58c
commit
b4d6b8c351
1 changed files with 3 additions and 7 deletions
|
|
@ -30,18 +30,14 @@ extension Core {
|
|||
}
|
||||
|
||||
func toggleCamera() {
|
||||
|
||||
UICamSwitch.switchCamera()
|
||||
/* Not working
|
||||
Log.i("[Core] Current camera device is \(videoDevice)")
|
||||
|
||||
var switched = false
|
||||
videoDevicesList.forEach {
|
||||
if ($0 != videoDevice && $0 != "StaticImage: Static picture") {
|
||||
if (!switched && $0 != videoDevice && $0 != "StaticImage: Static picture") {
|
||||
Log.i("[Core] New camera device will be \($0)")
|
||||
try?setVideodevice(newValue: $0)
|
||||
return
|
||||
switched = true
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue