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

Function getDuration

components/VideoPlayer.tsx:1039–1042  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1037 }
1038
1039 const getDuration = () => {
1040 return videoRef.current ? videoRef.current.duration
1041 : animationData ? animationData.map((f) => f.delay).reduce((p, c) => p + c) / 1000 : 0
1042 }
1043
1044 const seek = (position: number) => {
1045 const duration = getDuration()

Callers 7

VideoPlayerFunction · 0.85
playFunction · 0.85
seekFunction · 0.85
updateABloopFunction · 0.85
rewindFunction · 0.85
fastforwardFunction · 0.85
renderGIFFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected