JSX Video memory leak

If a video component is declared with this format: <Video source={{uri: 'http://techslides.com/demos/sample-videos/small.mp4' }} />, do we still need to maintain a ref to it and call unloadAsync when the component unmounts?

Is there anything else we have to take note of when dealing with AV resources to prevent memory leak?

Also, does videoRef.loadAsync have performance benefits over the above JSX declaration if we don’t need the video interface (i.e. width/height 0)?

Hey @james2412,

Great question. I’m going to talk to some of the devs who worked on the Audio/Video APIs and I’ll get back to you!

Cheers,

Adam

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.