Fix time update on the web player

This commit is contained in:
Zoe Roux 2023-05-30 14:42:15 +09:00
parent 92b5e33940
commit e6a6131a14
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ export const RightButtons = ({
return (
<View {...css({ flexDirection: "row" }, props)}>
{subtitles && subtitles.length && (
{subtitles && subtitles.length > 0 && (
<Menu
Trigger={IconButton}
icon={ClosedCaption}

View File

@ -149,7 +149,7 @@ const Video = forwardRef<{ seek: (value: number) => 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,