Categorygithub.com/deepch/RTSPtoWebRTC
modulepackage
0.0.0-20230311220444-3f043176ba33
Repository: https://github.com/deepch/rtsptowebrtc.git
Documentation: pkg.go.dev

# README

RTSPtoWebRTC

RTSP Stream to WebBrowser over WebRTC based on Pion (full native! not using ffmpeg or gstreamer).

Note: RTSPtoWeb is an improved service that provides the same functionality, an improved API, and supports even more protocols. RTSPtoWeb is recommended over using this service.

if you need RTSPtoWSMP4f use https://github.com/deepch/RTSPtoWSMP4f

RTSPtoWebRTC image

Download Source

  1. Download source
    $ git clone https://github.com/deepch/RTSPtoWebRTC  
    
  2. CD to Directory
     $ cd RTSPtoWebRTC/
    
  3. Test Run
     $ GO111MODULE=on go run *.go
    
  4. Open Browser
    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": {
      "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"
    }
  }
}

Livestreams

Use option "on_demand": false otherwise you will get choppy jerky streams and performance issues when multiple clients connect.

Limitations

Video Codecs Supported: H264

Audio Codecs Supported: pcm alaw and pcm mulaw

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

Other Example

Examples of working with video on golang

paypal.me/AndreySemochkin - You can make one-time donations via PayPal. I'll probably buy a coffee tea. :tea:

# Functions

No description provided by the author
HTTPAPIServerIndex index.
HTTPAPIServerStreamCodec stream codec.
HTTPAPIServerStreamPlayer stream player.
HTTPAPIServerStreamWebRTC stream video over WebRTC.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Config global.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ConfigST struct.
No description provided by the author
No description provided by the author
No description provided by the author
ServerST struct.
StreamST struct.