in Broadcasting/BroadcastConfiguration.swift [121:133]
func updateResolution(for size: CGSize) -> Error? {
let newSize = Resolution.sizeFor(customOrientation, a: Int(size.width), b: Int(size.height))
do {
try activeVideoConfiguration.setSize(newSize)
customResolution = "\(Int(newSize.width))x\(Int(newSize.height))"
userDefaults.setValue(newSize.width, forKey: Constants.kVideoConfigurationSizeWidth)
userDefaults.setValue(newSize.height, forKey: Constants.kVideoConfigurationSizeHeight)
return nil
} catch {
print("❌ Error updating resolution \(error)")
return error
}
}