mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
eb07ea17e7
commit
e6e7d52ebf
@ -82,11 +82,11 @@ final class CameraDeviceContext {
|
||||
|
||||
private var preferredMaxDimensions: CMVideoDimensions {
|
||||
if self.additional {
|
||||
if case .iPhoneXS = DeviceModel.current {
|
||||
//if case .iPhoneXS = DeviceModel.current {
|
||||
return CMVideoDimensions(width: 1440, height: 1080)
|
||||
} else {
|
||||
return CMVideoDimensions(width: 1920, height: 1440)
|
||||
}
|
||||
//} else {
|
||||
// return CMVideoDimensions(width: 1920, height: 1440)
|
||||
//}
|
||||
} else {
|
||||
return CMVideoDimensions(width: 1920, height: 1080)
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ final class CameraDevice {
|
||||
var bestFormat: AVCaptureDevice.Format?
|
||||
outer: for format in candidates {
|
||||
for range in format.videoSupportedFrameRateRanges {
|
||||
if range.maxFrameRate > 60 {
|
||||
if range.maxFrameRate > maxFramerate {
|
||||
continue outer
|
||||
}
|
||||
bestFormat = format
|
||||
|
Loading…
x
Reference in New Issue
Block a user