agsh / onvif

ONVIF node.js implementation
http://agsh.github.io/onvif/
MIT License
681 stars 231 forks source link

How do I display an RTSP URI on Reactjs #237

Closed Luisquii closed 1 year ago

Luisquii commented 2 years ago

Hi

I'm new with onvif protocol and also rtsp protocol.

My goal is to stream my IP camera to Reactjs

After following the example.js when I get the stream URI, I'm receiving an rtsp uri:

example here

{ uri: 'rtsp://192.168.0.109/Streaming/Channels/101?transportmode=unicast&profile=Profile_1' }

As long as I understand is not possible to reproduce an rtsp stream on browser, at least not straight forward.

Am I supposed to get an URI different than rtsp?

What are my possibilities?

I'm using a hikvision camera.

agsh commented 2 years ago

Hi! The simplest way, if you are common with javascript, is to use this: https://github.com/agsh/rtsp-ffmpeg or some similar library based on https://ffmpeg.org/ For the highload projects I can suggest https://www.kurento.org/ for example