fix: Fix videoCodec
being parsed wrong on Android
This commit is contained in:
parent
980961d76f
commit
edb415e913
@ -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")
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user