mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Call improvements
This commit is contained in:
@@ -81,6 +81,7 @@ public final class PrivateCallScreen: OverlayMaskContainerView, AVPictureInPictu
|
||||
public var isRemoteBatteryLow: Bool
|
||||
public var isEnergySavingEnabled: Bool
|
||||
public var isConferencePossible: Bool
|
||||
public var enableVideoSharpening: Bool
|
||||
|
||||
public init(
|
||||
strings: PresentationStrings,
|
||||
@@ -95,7 +96,8 @@ public final class PrivateCallScreen: OverlayMaskContainerView, AVPictureInPictu
|
||||
remoteVideo: VideoSource?,
|
||||
isRemoteBatteryLow: Bool,
|
||||
isEnergySavingEnabled: Bool,
|
||||
isConferencePossible: Bool
|
||||
isConferencePossible: Bool,
|
||||
enableVideoSharpening: Bool
|
||||
) {
|
||||
self.strings = strings
|
||||
self.lifecycleState = lifecycleState
|
||||
@@ -110,6 +112,7 @@ public final class PrivateCallScreen: OverlayMaskContainerView, AVPictureInPictu
|
||||
self.isRemoteBatteryLow = isRemoteBatteryLow
|
||||
self.isEnergySavingEnabled = isEnergySavingEnabled
|
||||
self.isConferencePossible = isConferencePossible
|
||||
self.enableVideoSharpening = enableVideoSharpening
|
||||
}
|
||||
|
||||
public static func ==(lhs: State, rhs: State) -> Bool {
|
||||
@@ -152,6 +155,9 @@ public final class PrivateCallScreen: OverlayMaskContainerView, AVPictureInPictu
|
||||
if lhs.isConferencePossible != rhs.isConferencePossible {
|
||||
return false
|
||||
}
|
||||
if lhs.enableVideoSharpening != rhs.enableVideoSharpening {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
@@ -994,7 +1000,7 @@ public final class PrivateCallScreen: OverlayMaskContainerView, AVPictureInPictu
|
||||
videoContainerView = current
|
||||
} else {
|
||||
animateIn = true
|
||||
videoContainerView = VideoContainerView(key: videoContainerKey)
|
||||
videoContainerView = VideoContainerView(key: videoContainerKey, enableSharpening: params.state.enableVideoSharpening)
|
||||
switch videoContainerKey {
|
||||
case .foreground:
|
||||
self.overlayContentsView.layer.addSublayer(videoContainerView.blurredContainerLayer)
|
||||
|
||||
Reference in New Issue
Block a user