diff --git a/package/ios/Parsers/AVVideoCodecType+descriptor.swift b/package/ios/Parsers/AVVideoCodecType+descriptor.swift index 11c6146..61d6da1 100644 --- a/package/ios/Parsers/AVVideoCodecType+descriptor.swift +++ b/package/ios/Parsers/AVVideoCodecType+descriptor.swift @@ -19,7 +19,7 @@ extension AVVideoCodecType { self = .hevc return default: - throw CameraError.parameter(.invalid(unionName: "codec", receivedValue: string)) + throw CameraError.parameter(.invalid(unionName: "videoCodec", receivedValue: string)) } } } diff --git a/package/ios/Types/RecordVideoOptions.swift b/package/ios/Types/RecordVideoOptions.swift index 83ee9d2..a1d4df3 100644 --- a/package/ios/Types/RecordVideoOptions.swift +++ b/package/ios/Types/RecordVideoOptions.swift @@ -28,11 +28,11 @@ struct RecordVideoOptions { flash = try Torch(jsValue: flashOption) } // Codec - if let codecOption = dictionary["codec"] as? String { + if let codecOption = dictionary["videoCodec"] as? String { codec = try AVVideoCodecType(withString: codecOption) } // BitRate - if let parsed = dictionary["bitRate"] as? Double { + if let parsed = dictionary["videoBitRate"] as? Double { bitRate = parsed } }