pptphutho / RTSPtoWebRTC

RTSP to WebRTC use Pion WebRTC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RTSPtoWebRTC

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

Team

Deepch - https://github.com/deepch streaming developer

Dmitry - https://github.com/vdalex25 web developer

Now test work on (chrome, safari, firefox) no MAC OS

RTSPtoWebRTC image

Installation

go get github.com/deepch/RTSPtoWebRTC
cd src/github.com/deepch/RTSPtoWebRTC
go run .
open web browser http://127.0.0.1:8083 work chrome, safari, firefox

Configuration

Edit file config.json

format:

{
  "server": {
    "http_port": ":8083"
  },
  "streams": {
    "demo1": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    },
    "demo2": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    },
    "demo3": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    }
  }
}

Limitations

Video Codecs Supported: H264

Audio Codecs Supported: pcm alaw and pcm mulaw

About

RTSP to WebRTC use Pion WebRTC

License:MIT License


Languages

Language:JavaScript 97.4%Language:Go 2.6%