mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-29 21:12:18 +08:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2e6679b3ea |
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