Commit 4173d617 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Ignore PLI and NACK for muted tracks.

parent 6ba5315a
...@@ -598,6 +598,9 @@ func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrt ...@@ -598,6 +598,9 @@ func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrt
for _, p := range ps { for _, p := range ps {
switch p := p.(type) { switch p := p.(type) {
case *rtcp.PictureLossIndication: case *rtcp.PictureLossIndication:
if track.muted() {
continue
}
err := conn.remote.sendPLI(track.remote) err := conn.remote.sendPLI(track.remote)
if err != nil { if err != nil {
log.Printf("sendPLI: %v", err) log.Printf("sendPLI: %v", err)
...@@ -625,6 +628,9 @@ func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrt ...@@ -625,6 +628,9 @@ func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrt
} }
} }
case *rtcp.TransportLayerNack: case *rtcp.TransportLayerNack:
if track.muted() {
continue
}
sendRecovery(p, track) sendRecovery(p, track)
default: default:
log.Printf("RTCP: %T", p) log.Printf("RTCP: %T", p)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment