fix: Handle both file:// and file:/ URI prefixes #19
@@ -44,7 +44,8 @@ class RecordingSession(
|
||||
data class Video(val path: String, val durationMs: Long, val size: Size)
|
||||
|
||||
// Normalize path - expo-file-system passes file:// URIs but File expects raw paths
|
||||
private val outputPath: File = File(filePath.removePrefix("file://"))
|
||||
// Handle both file:// and file:/ variants
|
||||
private val outputPath: File = File(filePath.replace(Regex("^file:/+"), "/"))
|
||||
|
||||
private val bitRate = getBitRate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user