wonday / react-native-live-stream

a react-native module for live stream play and publish
MIT License
90 stars 21 forks source link

How to save a video from live stream? #17

Open ghost opened 5 years ago

ghost commented 5 years ago

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?

wonday commented 5 years ago

You can not save video stream by using this lib.

wonday commented 5 years ago

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",
    }
  }}