Skip to content

🎥 Make videos programmatically with React

add comment about copied code

Igor Samokhovets3699e9742c4d
diff --git a/packages/three/src/use-offthread-video-texture.ts b/packages/three/src/use-offthread-video-texture.ts
index 1f87096c89..8f00987638 100644
--- a/packages/three/src/use-offthread-video-texture.ts
+++ b/packages/three/src/use-offthread-video-texture.ts
@@ -97,6 +97,7 @@ export function useOffthreadVideoTexture({
const videoDuration = useVideoDuration({src});
+ // taken from OffthreadVideoForRendering.tsx as it's not exported yet
const currentTime = useMemo(() => {
let time =
getExpectedMediaFrameUncorrected({