适配引擎修改

This commit is contained in:
dexter
2023-03-28 19:48:59 +08:00
parent ea5ea6f48a
commit 225bb482d5
5 changed files with 74 additions and 43 deletions

View File

@@ -49,7 +49,7 @@ func (conf *RTSPConfig) OnEvent(event any) {
}
case SEpublish:
for streamPath, url := range conf.PushList {
if streamPath == v.Stream.Path {
if streamPath == v.Target.Path {
if err := RTSPPlugin.Push(streamPath, url, new(RTSPPusher), false); err != nil {
RTSPPlugin.Error("push", zap.String("streamPath", streamPath), zap.String("url", url), zap.Error(err))
}