diff --git a/submodules/AccountContext/Sources/PresentationCallManager.swift b/submodules/AccountContext/Sources/PresentationCallManager.swift index 0a96e7aa79..9806b9ab62 100644 --- a/submodules/AccountContext/Sources/PresentationCallManager.swift +++ b/submodules/AccountContext/Sources/PresentationCallManager.swift @@ -348,7 +348,6 @@ public protocol PresentationGroupCall: class { func lowerHand() func requestVideo() func disableVideo() - func requestScreencast() func disableScreencast() func switchVideoCamera() func updateDefaultParticipantsAreMuted(isMuted: Bool) diff --git a/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift b/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift index dfed87e9b2..1f6ad90668 100644 --- a/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift +++ b/submodules/TelegramCallsUI/Sources/PresentationGroupCall.swift @@ -2527,7 +2527,7 @@ public final class PresentationGroupCallImpl: PresentationGroupCall { self.videoCapturer?.switchVideoInput(isFront: self.useFrontCamera) } - public func requestScreencast() { + private func requestScreencast() { if self.screencastCallContext != nil { return } diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatCameraPreviewController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatCameraPreviewController.swift index 0970ec6cd9..bdcc420119 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatCameraPreviewController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatCameraPreviewController.swift @@ -25,16 +25,14 @@ final class VoiceChatCameraPreviewController: ViewController { private let cameraNode: GroupVideoNode private let shareCamera: (ASDisplayNode) -> Void private let switchCamera: () -> Void - private let shareScreen: () -> Void private var presentationDataDisposable: Disposable? - init(context: AccountContext, cameraNode: GroupVideoNode, shareCamera: @escaping (ASDisplayNode) -> Void, switchCamera: @escaping () -> Void, shareScreen: @escaping () -> Void) { + init(context: AccountContext, cameraNode: GroupVideoNode, shareCamera: @escaping (ASDisplayNode) -> Void, switchCamera: @escaping () -> Void) { self.context = context self.cameraNode = cameraNode self.shareCamera = shareCamera self.switchCamera = switchCamera - self.shareScreen = shareScreen super.init(navigationBarPresentationData: nil) @@ -71,10 +69,6 @@ final class VoiceChatCameraPreviewController: ViewController { self.controllerNode.switchCamera = { [weak self] in self?.switchCamera() } - self.controllerNode.shareScreen = { [weak self] in - self?.shareScreen() - self?.dismiss() - } self.controllerNode.dismiss = { [weak self] in self?.presentingViewController?.dismiss(animated: false, completion: nil) } @@ -136,7 +130,6 @@ private class VoiceChatCameraPreviewControllerNode: ViewControllerTracingNode, U var shareCamera: (() -> Void)? var switchCamera: (() -> Void)? - var shareScreen: (() -> Void)? var dismiss: (() -> Void)? var cancel: (() -> Void)? @@ -248,11 +241,6 @@ private class VoiceChatCameraPreviewControllerNode: ViewControllerTracingNode, U strongSelf.shareCamera?() } } - self.screenButton.pressed = { [weak self] in - if let strongSelf = self { - strongSelf.shareScreen?() - } - } self.cancelButton.pressed = { [weak self] in if let strongSelf = self { strongSelf.cancel?() diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index 163a18899b..bb53a66e16 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -185,6 +185,10 @@ final class GroupVideoNode: ASDisplayNode { let transition: ContainedViewLayoutTransition = .immediate transition.updateTransformRotation(view: self.videoView.view, angle: angle) + + // TODO: properly fix the issue + // On iOS 13 and later metal layer transformation is broken if the layer does not require compositing + self.videoView.view.alpha = 0.995 } } @@ -3358,12 +3362,6 @@ public final class VoiceChatController: ViewController { } }, switchCamera: { [weak self] in self?.call.switchVideoCamera() - }, shareScreen: { [weak self] in - guard let strongSelf = self else { - return - } - - self?.call.requestScreencast() }) strongSelf.controller?.present(controller, in: .window(.root)) }