mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-27 03:56:08 +08:00
feat: add desc to config
This commit is contained in:
10
main.go
10
main.go
@@ -17,11 +17,11 @@ type RTSPConfig struct {
|
|||||||
config.Subscribe
|
config.Subscribe
|
||||||
config.Pull
|
config.Pull
|
||||||
config.Push
|
config.Push
|
||||||
ListenAddr string `default:":554"`
|
ListenAddr string `default:":554" desc:"rtsp监听地址"`
|
||||||
UDPAddr string `default:":8000"`
|
UDPAddr string `default:":8000" desc:"udp rtp监听地址"`
|
||||||
RTCPAddr string `default:":8001"`
|
RTCPAddr string `default:":8001" desc:"udp rtcp监听地址"`
|
||||||
WriteBufferCount int `default:"2048"`
|
WriteBufferCount int `default:"2048" desc:"rtsp写缓冲区大小"`
|
||||||
SendOptions bool `default:"true"`
|
SendOptions bool `default:"true" desc:"是否发送options请求"`
|
||||||
sync.Map
|
sync.Map
|
||||||
server *gortsplib.Server
|
server *gortsplib.Server
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user