Skip to content

Commit

Permalink
fix: Fix video file type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jul 29, 2024
1 parent f623944 commit 8c093e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package/ios/Core/Types/RecordVideoOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ struct RecordVideoOptions {
bitRateMultiplier = parsed
}
// Custom Path
let fileExtension = fileType.descriptor ?? "mov"
if let customPath = dictionary["path"] as? String {
path = try FileUtils.getFilePath(customDirectory: customPath, fileExtension: "jpg")
path = try FileUtils.getFilePath(customDirectory: customPath, fileExtension: fileExtension)
} else {
path = try FileUtils.getFilePath(fileExtension: "jpg")
path = try FileUtils.getFilePath(fileExtension: fileExtension)
}
}
}

0 comments on commit 8c093e7

Please sign in to comment.