From e6a6131a144c69f2e482ffb7adb5f0eef7733498 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 30 May 2023 14:42:15 +0900 Subject: [PATCH] Fix time update on the web player --- front/packages/ui/src/player/components/right-buttons.tsx | 2 +- front/packages/ui/src/player/video.web.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/packages/ui/src/player/components/right-buttons.tsx b/front/packages/ui/src/player/components/right-buttons.tsx index e64a7208..b5fa5146 100644 --- a/front/packages/ui/src/player/components/right-buttons.tsx +++ b/front/packages/ui/src/player/components/right-buttons.tsx @@ -65,7 +65,7 @@ export const RightButtons = ({ return ( - {subtitles && subtitles.length && ( + {subtitles && subtitles.length > 0 && ( void }, VideoProps>(function if (!ref.current) return; onLoad?.call(null, { duration: ref.current.duration } as any); }} - onProgress={() => { + onTimeUpdate={() => { if (!ref.current) return; onProgress?.call(null, { currentTime: ref.current.currentTime,