MCPcopy Create free account
hub / github.com/Moebytes/Frame-Player / updateSpeed

Function updateSpeed

components/VideoPlayer.tsx:1023–1027  ·  view source on GitHub ↗
(value?: number | string)

Source from the content-addressed store, hash-verified

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()

Callers 1

VideoPlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected