Use latest LightCompressor-enhanced:

Fix for Progressive download
Replaced obsolete MP4 parser libraries with native MediaMuxer/MediaCodec
This commit is contained in:
davotoula
2025-10-12 21:13:12 +02:00
parent 0045426840
commit 2a3c31cc5b
3 changed files with 2 additions and 15 deletions

View File

@@ -151,12 +151,6 @@ android {
signingConfig = signingConfigs.debug
}
}
// TODO: remove this when lightcompressor uses one MP4 parser only
packaging {
resources {
resources.pickFirsts.add('builddef.lst')
}
}
flavorDimensions = ["channel"]

View File

@@ -257,16 +257,9 @@ object VideoCompressionHelper {
"Compressed [$size] ($reductionPercent% reduction)",
)
// Attempt to correct the path: if it contains "_temp" then remove it
val correctedPath =
if (path.contains("_temp")) {
path.replace("_temp", "")
} else {
path
}
if (continuation.isActive) {
continuation.resume(
MediaCompressorResult(Uri.fromFile(File(correctedPath)), contentType, size),
MediaCompressorResult(Uri.fromFile(File(path)), contentType, size),
)
}
}

View File

@@ -33,7 +33,7 @@ languageId = "17.0.6"
lazysodiumAndroid = "5.2.0"
lazysodiumJava = "5.2.0"
lifecycleRuntimeKtx = "2.9.4"
lightcompressor = "1.5.0"
lightcompressor = "use-native-libraries-for-avc-and-hevc-SNAPSHOT"
markdown = "f92ef49c9d"
media3 = "1.8.0"
mockk = "1.14.5"