mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Video call improvements
This commit is contained in:
parent
c854b25d3c
commit
5faac089d6
@ -1 +1 @@
|
||||
Subproject commit 501b4afb27745c4813a88ffa28acd901408014e4
|
||||
Subproject commit b8755bd2884d6bf651827c30e00bd0ea318e41a2
|
@ -1 +1 @@
|
||||
Subproject commit 748e7e2b1ee5e8976ba873394cbd5e32b61818c7
|
||||
Subproject commit d6f9a87d70781e92b95b9344c7d21d921ccc3ae2
|
@ -1 +1 @@
|
||||
Subproject commit 6408d85da799ec2af053c4e2883dce3ce6d30f08
|
||||
Subproject commit 44e8c29afe3baa7f5fc434f4a7e83f7ac786644e
|
@ -1 +1 @@
|
||||
2.2.0
|
||||
3.4.1
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ee185c4c20ea4384bc3cbf8ccd8705c904154abb
|
||||
Subproject commit e890fb6c88846454c4f69abd8d265a302c0e80e4
|
@ -139,8 +139,8 @@ class CallListCallItem: ListViewItem {
|
||||
for media in self.topMessage.media {
|
||||
if let action = media as? TelegramMediaAction {
|
||||
if case let .phoneCall(_, _, _, isVideoValue) = action.action {
|
||||
break
|
||||
isVideo = isVideoValue
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -251,14 +251,17 @@ private final class CallVideoNode: ASDisplayNode {
|
||||
}
|
||||
self.previousVideoHeight = rotatedVideoHeight
|
||||
transition.updatePosition(node: self.videoTransformContainer, position: CGPoint(x: size.width / 2.0, y: size.height / 2.0))
|
||||
transition.updateTransformRotation(view: self.videoTransformContainer.view, angle: rotationAngle)
|
||||
|
||||
let localVideoFrame = CGRect(origin: CGPoint(), size: videoFrame.size)
|
||||
self.videoView.view.bounds = localVideoFrame
|
||||
self.videoView.view.center = localVideoFrame.center
|
||||
transition.updateTransformRotation(view: self.videoView.view, angle: rotationAngle)
|
||||
// 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
|
||||
|
||||
if let effectView = self.effectView {
|
||||
transition.updateFrame(view: effectView, frame: videoFrame)
|
||||
transition.updateFrame(view: effectView, frame: localVideoFrame)
|
||||
}
|
||||
|
||||
transition.updateCornerRadius(layer: self.layer, cornerRadius: self.currentCornerRadius)
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit e00b1c5d104fe778b9cd5986a5372056bd8405f7
|
||||
Subproject commit d27912dcedcd9f223fbdbbb5589b01839c256a8d
|
Loading…
x
Reference in New Issue
Block a user