I would like to play video stream (h264) through RTSP protocol from IP/Network in iOS device. I am using React Native.
I have tried several React Native packages as below, but not manage to make it work.
The closest package that I think might work is react-native-vlcplayer, but it seems to be abandoned.
Any recommendation?
Thank you
Before you have your RTSP address entered, you're going to go into the web interface for the camera you're going to be streaming and go to “Set Up”, “Network”, and then “Port.” You need to make sure your RTSP Port is set to 554. This should be the default setting, but it doesn't hurt to check before you get going!
Step 1: Download and install VLC Player from http://www.videolan.org/vlc/. Step 2: Open VLC player and select“Open Network Stream”from the Media menu. Step 3: Type the network URL in the dialog box below, and then click Play to play the video with RTSP stream.
RTSP is a media streaming protocol that has limited control on how this streaming shall be done. Whereas, ONVIF protocol is to ensure compatibility of various surveillance devices i-e IP cameras, centralized servers and storage devices through bridging servers.
You can use react-native-vlcplayer for streaming from the IP camera on iOS and react-native-vlc-player for streaming on Android.
When you do "react-native link", don't forget to check the header search path and framework search path inside the RTVLCPlayer sub project. It is generally hardcoded. Change it accordingly and your code should work.
You can also refer this link if you are building on iOS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With