(value?: number | string)
| 1021 | }) |
| 1022 | |
| 1023 | const updateSpeed = (value?: number | string) => { |
| 1024 | if (!videoRef.current) return |
| 1025 | let currentSpeed = value !== undefined ? value : speed |
| 1026 | videoRef.current.playbackRate = Number(currentSpeed) |
| 1027 | } |
| 1028 | |
| 1029 | useEffect(() => { |
| 1030 | updateSpeed() |