1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Ignore PLI and NACK for muted tracks.

This commit is contained in:
Juliusz Chroboczek 2020-04-29 20:31:49 +02:00
parent 6ba5315a48
commit 4173d6170e

View file

@ -598,6 +598,9 @@ func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrt
for _, p := range ps {
switch p := p.(type) {
case *rtcp.PictureLossIndication:
if track.muted() {
continue
}
err := conn.remote.sendPLI(track.remote)
if err != nil {
log.Printf("sendPLI: %v", err)
@ -625,6 +628,9 @@ func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrt
}
}
case *rtcp.TransportLayerNack:
if track.muted() {
continue
}
sendRecovery(p, track)
default:
log.Printf("RTCP: %T", p)