mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[WIP] Call UI
This commit is contained in:
@@ -375,6 +375,7 @@ public final class OngoingGroupCallContext {
|
||||
public let width: Int
|
||||
public let height: Int
|
||||
public let orientation: OngoingCallVideoOrientation
|
||||
public let deviceRelativeOrientation: OngoingCallVideoOrientation?
|
||||
public let mirrorHorizontally: Bool
|
||||
public let mirrorVertically: Bool
|
||||
|
||||
@@ -392,6 +393,11 @@ public final class OngoingGroupCallContext {
|
||||
self.width = Int(frameData.width)
|
||||
self.height = Int(frameData.height)
|
||||
self.orientation = OngoingCallVideoOrientation(frameData.orientation)
|
||||
if frameData.hasDeviceRelativeOrientation {
|
||||
self.deviceRelativeOrientation = OngoingCallVideoOrientation(frameData.deviceRelativeOrientation)
|
||||
} else {
|
||||
self.deviceRelativeOrientation = nil
|
||||
}
|
||||
self.mirrorHorizontally = frameData.mirrorHorizontally
|
||||
self.mirrorVertically = frameData.mirrorVertically
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user