mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-12 19:00:57 +08:00
适配引擎修改
This commit is contained in:
2
main.go
2
main.go
@@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user