MCPcopy Create free account
hub / github.com/Monibuca/engine / OnPublisherLost

Method OnPublisherLost

subscribers.go:79–87  ·  view source on GitHub ↗
(event StateEvent)

Source from the content-addressed store, hash-verified

77}
78
79func (s *Subscribers) OnPublisherLost(event StateEvent) {
80 s.rangeAll(func(sub ISubscriber, wait *waitTracks) {
81 if _, ok := s.waits[wait]; ok {
82 wait.Reject(ErrPublisherLost)
83 delete(s.waits, wait)
84 }
85 sub.OnEvent(event)
86 })
87}
88
89// SendInviteTrack 广播需要的 Track(转码插件可以用到)
90func (s *Subscribers) SendInviteTrack(stream *Stream) {

Callers 1

actionMethod · 0.80

Calls 3

rangeAllMethod · 0.95
RejectMethod · 0.80
OnEventMethod · 0.65

Tested by

no test coverage detected