mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Make max compressed video size remote configurable.
This commit is contained in:
committed by
Michelle Tang
parent
69cad04875
commit
3620db3a92
@@ -929,6 +929,15 @@ object RemoteConfig {
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** Maximum size a video transcode should target in bytes */
|
||||
@JvmStatic
|
||||
@get:JvmName("videoTranscodeTargetSizeBytes")
|
||||
val videoTranscodeTargetSizeBytes: Long by remoteLong(
|
||||
key = "global.videoAttachments.transcodeTargetBytes",
|
||||
defaultValue = 100.mebiBytes.inWholeBytes,
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** Maximum input size when opening a video to send in bytes */
|
||||
@JvmStatic
|
||||
@get:JvmName("maxSourceTranscodeVideoSizeBytes")
|
||||
|
||||
Reference in New Issue
Block a user