适配引擎修改

This commit is contained in:
dexter
2023-03-28 19:48:18 +08:00
parent 790c2f6a23
commit 4b8c93fdfc
3 changed files with 24 additions and 12 deletions

View File

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