aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-23 15:13:04 -0400
committerIvan Chen <ivan@tagg.id>2021-07-23 15:13:04 -0400
commitd5eabf15913597fc61127d7b501d271cdeac683c (patch)
tree91509301e137497056886b053022c16ea81c4b0d
parentca77b022552e01af490029b7c8990b5d1e0de098 (diff)
Tweak duration again
-rw-r--r--src/components/moments/MomentUploadProgressBar.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/moments/MomentUploadProgressBar.tsx b/src/components/moments/MomentUploadProgressBar.tsx
index 792ac33f..d56a8337 100644
--- a/src/components/moments/MomentUploadProgressBar.tsx
+++ b/src/components/moments/MomentUploadProgressBar.tsx
@@ -98,10 +98,10 @@ const MomentUploadProgressBar: React.FC<MomentUploadProgressBarProps> =
if (
momentUploadProgressBar?.status === MomentUploadStatusType.UploadingToS3
) {
- // e.g. 30s video => 30 * 2.5 = 60s
+ // e.g. 30s video => 30 * 3 = 60s
const videoDuration =
momentUploadProgressBar.originalVideoDuration ?? 30;
- const durationInSeconds = videoDuration * 2.5;
+ const durationInSeconds = videoDuration * 3;
progress.value = withTiming(1, {
duration: durationInSeconds * 1000,
easing: Easing.out(Easing.quad),