diff --git a/src/Video.tsx b/src/Video.tsx index 364c15b1..8fd00486 100644 --- a/src/Video.tsx +++ b/src/Video.tsx @@ -233,8 +233,8 @@ const Video = forwardRef( }, [selectedVideoTrack]); const seek = useCallback(async (time: number, tolerance?: number) => { - if (isNaN(time)) { - throw new Error('Specified time is not a number'); + if (isNaN(time) || time === null) { + throw new Error("Specified time is not a number: '" + time + "'"); } if (!nativeRef.current) {