mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-09-27 03:58:28 +08:00
feat: add regexp when pullonsub
This commit is contained in:
4
main.go
4
main.go
@@ -47,8 +47,8 @@ func (c *RTMPConfig) OnEvent(event any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case InvitePublish: //按需拉流
|
case InvitePublish: //按需拉流
|
||||||
if url, ok := c.PullOnSub[v.Target]; ok {
|
if remoteURL := conf.CheckPullOnSub(v.Target); remoteURL != "" {
|
||||||
pull(v.Target, url)
|
pull(v.Target, remoteURL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user