package
module
Version:
v0.0.0-...-6ac889d
Opens a new window with list of versions in this module.
Published: Mar 21, 2021
License: MIT
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
camweb
Connect to RTSP cameras from your browser!
Great for security or baby monitors.
Installation
- Install Go on path
- Clone repo
- Run
go build
- Add a
config.json
to add cameras (see config_sample.json
)
Credit
Originally forked from https://github.com/deepch/RTSPtoWebRTC
Changes from upstream:
- Uses a websocket and trickle ICE, avoids STUN servers
- More resilient to packet loss using NACK responses
Documentation
¶
func RegisterCodecs(m *webrtc.MediaEngine) error
RegisterCodecs forces PCMA audio, the rest is default
type ServerSettings struct {
HTTPPort string `json:"http_port"`
}
type StreamSettings struct {
URL string `json:"url"`
Status bool `json:"status"`
Codecs []av.CodecData
VideoTrack *webrtc.TrackLocalStaticSample
AudioTrack *webrtc.TrackLocalStaticSample
}
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.