RTSP to WEBRTC live video streaming

Viewed 23224

I've RTSP stream of an IP cam on my local network. I would like to stream that using webrtc over the internet. How to do it? Can it be done by JavaScript Library like peerjs or easywebrt or simplewebrtc. If yes then, is there any demo or example available for reference?

3 Answers

I don't think you will be able to do this with just your browser. You will need some sort of media gateway.

RTSPtoWebRTC is an active project that does exactly what you want! It is written in Go and uses Pion WebRTC

Need to use a Media Gateway for converting the RTSP/RTP protocol to WEBRTC specific RTP protocol.

Media Gateway option - janus-gateway

Check the link and create the your setup accordingly - meetecho-janus.

It is unverified because I do not have IPCam at hand,
EX) Virtual Webcam Driver
If you use such an IP Camera to WebCam Converter, you will be able to recognize it as a WebCam in the Browser. The disadvantage is that you need a PC on the IP Camera side.

Related