react-native-live-stream icon indicating copy to clipboard operation
react-native-live-stream copied to clipboard

How to save a video from live stream?

Open ghost opened this issue 5 years ago • 2 comments

I want to start and stop recording a video from the stream (hls / m3u8 uri file) and save it on the phone. There is any possible way to do this? any suggestions?

ghost avatar Sep 21 '19 00:09 ghost

You can not save video stream by using this lib.

wonday avatar Sep 23 '19 09:09 wonday

You can use source={{uri:"rtsp://< user >:< password >@< ip > / < path-to-streaming-channel >"}} or add some headers

source={{
    uri: 'trsp://< ip > / < path-to-streaming-channel >',
    headers: {
      xxx: "yyy",
    }
  }}

wonday avatar Sep 26 '19 01:09 wonday