mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Merge tgcalls update
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user