mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-06 16:30:55 +00:00
Video Chat Improvements
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user