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)?