Merge tgcalls update

This commit is contained in:
Ali
2020-08-24 22:14:28 +01:00
parent b040434c23
commit ece4f6ed86
12 changed files with 69 additions and 34 deletions

View File

@@ -246,6 +246,7 @@ public final class PresentationCallImpl: PresentationCall {
private var droppedCall = false
private var dropCallKitCallTimer: SwiftSignalKit.Timer?
private var useFrontCamera: Bool = true
private var videoCapturer: OngoingCallVideoCapturer?
init(
@@ -1029,6 +1030,7 @@ public final class PresentationCallImpl: PresentationCall {
}
public func switchVideoCamera() {
self.videoCapturer?.switchCamera()
self.useFrontCamera = !self.useFrontCamera
self.videoCapturer?.switchVideoInput(isFront: self.useFrontCamera)
}
}