Video Chat Improvements

This commit is contained in:
Ilya Laktyushin
2021-05-20 19:22:25 +04:00
parent a434c891a2
commit d956de870c
6 changed files with 163 additions and 75 deletions

View File

@@ -186,7 +186,7 @@ private class VoiceChatCameraPreviewControllerNode: ViewControllerTracingNode, U
if #available(iOS 12.0, *) {
let broadcastPickerView = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width: 50, height: 52.0))
broadcastPickerView.alpha = 0.1
broadcastPickerView.alpha = 0.05
broadcastPickerView.preferredExtension = "\(self.context.sharedContext.applicationBindings.appBundleId).BroadcastUpload"
broadcastPickerView.showsMicrophoneButton = false
self.broadcastPickerView = broadcastPickerView
@@ -293,6 +293,10 @@ private class VoiceChatCameraPreviewControllerNode: ViewControllerTracingNode, U
}
}
deinit {
self.applicationStateDisposable?.dispose()
}
@objc private func microphonePressed() {
self.microphoneButton.isSelected = !self.microphoneButton.isSelected
self.microphoneIconNode.update(state: .init(muted: !self.microphoneButton.isSelected, filled: true, color: .white), animated: true)