Set SSRC for RTCP (#760)

- SenderSSRC was not set for NACK, RTCP_RR - so SRTP context
was using SSRC = 0 which is not bad, but let us set the SSRC properly.
- PLI was using a random SSRC on every PLI. So, that would have
created a new SRTP stream (not bad as that stream context is small)
on every PLI. It is wasteful. So, set the SenderSSRC to the mediaSSRC.
- Reduce re-start of higher layers to 10 seconds. That is long enough
to declare that a stream layer has restarted.
This commit is contained in:
Raja Subramanian
2022-06-16 12:07:21 +05:30
committed by GitHub
parent 558be854be
commit 83b71fce50
2 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -25,13 +25,13 @@ var (
},
{
SamplesRequired: 5,
CyclesRequired: 60,
CyclesRequired: 20,
CycleDuration: 500 * time.Millisecond,
BitrateReportInterval: 1 * time.Second,
},
{
SamplesRequired: 5,
CyclesRequired: 60,
CyclesRequired: 20,
CycleDuration: 500 * time.Millisecond,
BitrateReportInterval: 1 * time.Second,
},