I’m new with three,js, if it possible - help me, please
i have videotexture with react-three-fiber
const [video] = useState(() => {
const vid = document.createElement(“video”)
vid.src = video_src.url_video
vid.load()
vid.crossOrigin = “Anonymous”
vid.loop = true
return vid
});
and
useEffect(() => void (ready_play &&video.play()), [ready_play, video])
and
<mesh scale={[1, 1.5, 1]} geometry={nodes.screen.geometry} position={[7.77, 4.54, -0.23]}>
Question: how i can change videotexture when i click next btn and receive new url video ( vid.src)?
Thanks
example(Reflector variant - CodeSandbox)