enable rtmp by default; add parameters to disable rtsp and rtmp

This commit is contained in:
aler9 2021-03-10 20:19:43 +01:00
parent 09cbeae60f
commit f19e23eaa5
5 changed files with 78 additions and 52 deletions

View file

@ -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"`