this sample usage Pion WebRTC https://github.com/pions/webrtc stream RTSP camera to browser
- go get github.com/deepch/RTSPtoWebRTC
- cd to github.com/deepch/RTSPtoWebRTC
- go run *.go
- open browser http://127.0.0.1:8080
you can edit url := "rtsp://admin:[email protected]:1554/mpeg4cif" to any you stream