Video Chat Improvements

This commit is contained in:
Ilya Laktyushin
2021-05-23 15:15:40 +04:00
parent 86fa2f2724
commit b64860e116
2 changed files with 7 additions and 1 deletions

View File

@@ -274,7 +274,7 @@ final class GroupVideoNode: ASDisplayNode {
}
if let backdropEffectView = self.backdropEffectView {
let maxSide = max(bounds.width, bounds.height)
let maxSide = max(bounds.width, bounds.height) + 32.0
let squareBounds = CGRect(x: (bounds.width - maxSide) / 2.0, y: (bounds.height - maxSide) / 2.0, width: maxSide, height: maxSide)
if case let .animated(duration, .spring) = transition {

View File

@@ -601,6 +601,12 @@ final class VoiceChatMainStageNode: ASDisplayNode {
}
let videoNode = GroupVideoNode(videoView: videoView, backdropVideoView: backdropVideoView)
videoNode.tapped = { [weak self] in
guard let strongSelf = self else {
return
}
strongSelf.tap()
}
videoNode.sourceContainerNode.activate = { [weak self] sourceNode in
guard let strongSelf = self else {
return