mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-27 03:56:08 +08:00
👌 IMPROVE: 添加初始化监听失败日志
This commit is contained in:
5
main.go
5
main.go
@@ -37,7 +37,10 @@ func (conf *RTSPConfig) OnEvent(event any) {
|
||||
MulticastRTPPort: 8002,
|
||||
MulticastRTCPPort: 8003,
|
||||
}
|
||||
s.Start()
|
||||
if err := s.Start(); err != nil {
|
||||
RTSPPlugin.Error("server start", zap.Error(err))
|
||||
v["enabled"] = false
|
||||
}
|
||||
if conf.PullOnStart {
|
||||
for streamPath, url := range conf.PullList {
|
||||
if err := RTSPPlugin.Pull(streamPath, url, new(RTSPPuller), false); err != nil {
|
||||
|
Reference in New Issue
Block a user