fix: Fix videoCodec being parsed wrong on Android

This commit is contained in:
Marc Rousavy
2023-11-28 20:23:28 +01:00
parent 980961d76f
commit edb415e913
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class RecordVideoOptions(map: ReadableMap) {
flash = Flash.fromUnionValue(map.getString("flash"))
}
if (map.hasKey("videoCodec")) {
videoCodec = VideoCodec.fromUnionValue(map.getString("fileType"))
videoCodec = VideoCodec.fromUnionValue(map.getString("videoCodec"))
}
if (map.hasKey("videoBitRateOverride")) {
videoBitRateOverride = map.getDouble("videoBitRateOverride")

View File

@@ -154,7 +154,7 @@ class RecordingSession {
ReactLogger.log(level: .info, message: "Started RecordingSession at time: \(currentTime.seconds)")
if audioWriter == nil {
// Audio was enabled, mark the Audio track as finished so we won't wait for it.
// Audio was disabled, mark the Audio track as finished so we won't wait for it.
hasWrittenLastAudioFrame = true
}
}