Skip to content

Commit

Permalink
Merge 0a9668b into 2203de0
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadRadifa authored Jun 20, 2024
2 parents 2203de0 + 0a9668b commit 65ac494
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ fun HistoryCameraContent(
recording = null
} else {
MainScope().launch {
applyVideoEffects(outputFile, processedFile) { progress, status ->
isProcessingVideo = status
processingVideoProgress = progress
}
// applyVideoEffects(outputFile, processedFile) { progress, status ->
// isProcessingVideo = status
// processingVideoProgress = progress
// }


val multipartBody = processedFile.let { file ->
val multipartBody = outputFile.let { file ->
val contentType = "video/*".toMediaTypeOrNull()
ProgressFileUpload(file, contentType) { progress ->
uploadProgress = progress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ fun MessageCameraContent(
recording = null
} else {
MainScope().launch {
applyVideoEffects(outputFile, processedFile) { progress, status ->
isProcessingVideo = status
processingVideoProgress = progress
}
// applyVideoEffects(outputFile, processedFile) { progress, status ->
// isProcessingVideo = status
// processingVideoProgress = progress
// }


val multipartBody = processedFile.let { file ->
val multipartBody = outputFile.let { file ->
val contentType = "video/*".toMediaTypeOrNull()
ProgressFileUpload(file, contentType) { progress ->
uploadProgress = progress
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/singa/asl/utils/Helpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ object Helpers {
// FFmpeg command for mirroring the video
val command = arrayOf(
"-i", inputFile.absolutePath, // Input file
"-vf", "hflip", // Mirror effect (horizontal flip)
// Mirror effect (horizontal flip)
"-c:v", "libx264", // Compress using H.264 codec
"-preset", "fast", // Compression preset
"-crf", "28", // Compression quality
Expand Down

0 comments on commit 65ac494

Please sign in to comment.