feat: add regexp when pullonsub

This commit is contained in:
langhuihui
2023-10-23 14:15:30 +08:00
parent 7c3a013853
commit c0c7577ab1

View File

@@ -47,8 +47,8 @@ func (c *RTMPConfig) OnEvent(event any) {
}
}
case InvitePublish: //按需拉流
if url, ok := c.PullOnSub[v.Target]; ok {
pull(v.Target, url)
if remoteURL := conf.CheckPullOnSub(v.Target); remoteURL != "" {
pull(v.Target, remoteURL)
}
}
}