fix: pull publisher block

This commit is contained in:
langhuihui
2024-10-04 17:44:47 +08:00
parent f101d34de0
commit c57200178d
22 changed files with 133 additions and 62 deletions

View File

@@ -425,7 +425,9 @@ func (p *Plugin) OnSubscribe(sub *Subscriber) {
}
}
for device := range p.Server.Devices.Range {
device.Handler.Pull()
if device.Status == DeviceStatusOnline && device.GetStreamPath() == sub.StreamPath {
device.Handler.Pull()
}
}
//if !avoidTrans {
// for reg, conf := range plugin.GetCommonConf().OnSub.Transform {