correctly dispose useVideoTexture() #1586
Unanswered
hatsumatsu
asked this question in
Q&A
Replies: 2 comments
-
same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1 the question. I'm having a video and I can still hear the audio in the background, after whole ThreeJS scene is removed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I'm currently looking into using the
useVideoTexture()
hook to play some dynamic video content. Is there any need to manually cleanup after unmounting the component containing the video? In my use case they will be quite a number of video components mounted and unmounted over time.I know that there is
useLoader.clear( mediaUrl )
but how about disposing the<video>
element created behind the scenes? Or will this be garbage collected by default?Beta Was this translation helpful? Give feedback.
All reactions