mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-09 03:42:01 -08:00
enable rtmp by default; add parameters to disable rtsp and rtmp
This commit is contained in:
parent
09cbeae60f
commit
f19e23eaa5
5 changed files with 78 additions and 52 deletions
|
|
@ -63,6 +63,7 @@ type Conf struct {
|
|||
RunOnConnectRestart bool `yaml:"runOnConnectRestart"`
|
||||
|
||||
// rtsp
|
||||
RTSPDisable bool `yaml:"rtspDisable"`
|
||||
Protocols []string `yaml:"protocols"`
|
||||
ProtocolsParsed map[gortsplib.StreamProtocol]struct{} `yaml:"-" json:"-"`
|
||||
Encryption string `yaml:"encryption"`
|
||||
|
|
@ -78,8 +79,8 @@ type Conf struct {
|
|||
ReadBufferSize int `yaml:"readBufferSize"`
|
||||
|
||||
// rtmp
|
||||
RTMPEnable bool `yaml:"rtmpEnable"`
|
||||
RTMPPort int `yaml:"rtmpPort"`
|
||||
RTMPDisable bool `yaml:"rtmpDisable"`
|
||||
RTMPPort int `yaml:"rtmpPort"`
|
||||
|
||||
// path
|
||||
Paths map[string]*PathConf `yaml:"paths"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue