aboutsummaryrefslogtreecommitdiff
path: root/src/components/moments/TrimmerPlayer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/moments/TrimmerPlayer.tsx')
-rw-r--r--src/components/moments/TrimmerPlayer.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/moments/TrimmerPlayer.tsx b/src/components/moments/TrimmerPlayer.tsx
index 247c270f..8d1cd156 100644
--- a/src/components/moments/TrimmerPlayer.tsx
+++ b/src/components/moments/TrimmerPlayer.tsx
@@ -75,9 +75,9 @@ const TrimmerPlayer: React.FC<TrimmerPlayerProps> = ({
setEnd(payload.duration);
const {width, height} = payload.naturalSize;
if (payload.naturalSize.orientation === 'portrait') {
- handleLoad(height, width);
+ handleLoad(height, width, payload.duration);
} else {
- handleLoad(width, height);
+ handleLoad(width, height, payload.duration);
}
}}
onProgress={(e) => {