RTSP Stream to WebBrowser over WebRTC based on Pion
full native! not use ffmpeg or gstreamer
if you need RTSPtoWSMP4f use https://github.com/deepch/RTSPtoWSMP4f
- Download source
$ git clone https://github.com/deepch/RTSPtoWebRTC
- CD to Directory
$ cd RTSPtoWebRTC/
- Test Run
$ GO111MODULE=on go run *.go
- Open Browser
open web browser http://127.0.0.1:8083 work chrome, safari, firefox
format:
{
"server": {
"http_port": ":8083"
},
"streams": {
"demo1": {
"on_demand" : false
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
},
"demo2": {
"on_demand" : true
"url": "rtsp://admin:[email protected]/mpeg4"
},
"demo3": {
"on_demand" : false
"url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
}
}
}
Use option "on_demand": false
otherwise you will get choppy jerky streams and performance issues when multiple clients connect.
Video Codecs Supported: H264
Audio Codecs Supported: pcm alaw and pcm mulaw
Deepch - https://github.com/deepch streaming developer
Dmitry - https://github.com/vdalex25 web developer
Now test work on (chrome, safari, firefox) no MAC OS
Examples of working with video on golang
- You can make one-time donations via PayPal. I'll probably buy a
coffee tea. ๐ต