Search code examples
react-nativereact-native-video

React-Native-Video -> how to save a video


I'm currently using react-native-video and playing HLS video streams through the package. Anyone know how i can download the video onto the phone gallery?

Looking into the package there isn't any methods for that, and wondering if there is another package to use

Thanks!


Solution

  • The way HLS is streamed make the data not compatible for saving into single data file. So there is a good reason why you might be unable to save video into file from the stream intended for presentation.

    The other reason is that RN Video component does not offer this capability.

    The tooling that saves a file, such as MP4, from streaming media content is typically different from streaming media players exactly in the way that they download chunks of data having the limitation in mind that those video chunks are intended for a file.