mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-05 13:36:51 +08:00
feat: add change subscribe
This commit is contained in:
@@ -332,12 +332,6 @@ func (p *Plugin) Subscribe(streamPath string, options ...any) (subscriber *Subsc
|
||||
switch v := option.(type) {
|
||||
case func(*config.Subscribe):
|
||||
v(&subscriber.Subscribe)
|
||||
case SubscriberHandler:
|
||||
defer func() {
|
||||
if err == nil {
|
||||
subscriber.Handle(v)
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
subscriber.Init(p, streamPath, options...)
|
||||
|
Reference in New Issue
Block a user