Add extra session info for SRT

This commit is contained in:
Ingo Oppermann
2023-09-21 16:06:27 +02:00
parent 8653ceeba9
commit d2016fff70
2 changed files with 16 additions and 6 deletions

View File

@@ -359,7 +359,7 @@ func (s *server) publish(conn srt.Conn, isProxy bool) error {
s.lock.Lock()
ch := s.channels[si.Resource]
if ch == nil {
ch = newChannel(conn, si.Resource, isProxy, s.collector)
ch = newChannel(conn, si.Resource, isProxy, identity, s.collector)
s.channels[si.Resource] = ch
} else {
ch = nil
@@ -471,7 +471,7 @@ func (s *server) handleSubscribe(conn srt.Conn) {
if ch != nil {
s.log(identity, "PLAY", "START", si.Resource, "", client)
id := ch.AddSubscriber(conn, si.Resource)
id := ch.AddSubscriber(conn, si.Resource, identity)
// Blocks until connection closes
err := ch.pubsub.Subscribe(conn)