Skip to content

Commit 3fe37e2

Browse files
committed
chore: tweak config
1 parent 3b07660 commit 3fe37e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/shared-native/android/StreamVideoThumbnailGenerator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ data class StreamVideoThumbnailResult(
1414
)
1515

1616
object StreamVideoThumbnailGenerator {
17-
private const val DEFAULT_COMPRESSION_QUALITY = 80
18-
private const val DEFAULT_MAX_DIMENSION = 512
17+
private const val DEFAULT_COMPRESSION_QUALITY = 70
18+
private const val DEFAULT_MAX_DIMENSION = 256
1919
private const val CACHE_VERSION = "v1"
2020
private const val CACHE_DIRECTORY_NAME = "@stream-io-stream-video-thumbnails"
2121
private const val MAX_CONCURRENT_GENERATIONS = 5
@@ -64,7 +64,7 @@ object StreamVideoThumbnailGenerator {
6464
return try {
6565
setDataSource(retriever, context, url)
6666
val frame =
67-
retriever.getFrameAtTime(0, MediaMetadataRetriever.OPTION_CLOSEST_SYNC)
67+
retriever.getFrameAtTime(100000, MediaMetadataRetriever.OPTION_CLOSEST_SYNC)
6868
?: throw IllegalStateException("Failed to extract video frame for $url")
6969
val scaledFrame = scaleBitmap(frame)
7070

0 commit comments

Comments
 (0)