Fix video encoding failing on 4k 60fps videos

This commit is contained in:
Ilya Laktyushin
2021-06-11 01:07:29 +03:00
parent dd768dfdeb
commit be9ce8501c
2 changed files with 12 additions and 6 deletions

View File

@@ -2562,13 +2562,13 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
self.isVideoMutedDisposable.set(nil)
self.genericCallContext?.disableVideo()
self.isVideoMuted = true
self.updateLocalVideoState()
}
}
private func updateLocalVideoState() {
self.participantsContext?.updateVideoState(peerId: self.joinAsPeerId, isVideoMuted: self.videoCapturer == nil, isVideoPaused: self.isVideoMuted, isPresentationPaused: false)
self.participantsContext?.updateVideoState(peerId: self.joinAsPeerId, isVideoMuted: self.videoCapturer == nil, isVideoPaused: self.isVideoMuted, isPresentationPaused: nil)
}
public func switchVideoCamera() {