Add option to drop remote ICE candidates. (#3118)

Defaults to OFF.
This commit is contained in:
Raja Subramanian
2024-10-19 10:30:22 +05:30
committed by GitHub
parent c04c703125
commit a564f7fbe6
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -158,6 +158,7 @@ type ParticipantParams struct {
ForwardStats *sfu.ForwardStats
DisableSenderReportPassThrough bool
MetricConfig metric.MetricConfig
DropRemoteICECandidates bool
}
type ParticipantImpl struct {
@@ -1448,6 +1449,7 @@ func (p *ParticipantImpl) setupTransportManager() error {
PublisherHandler: pth,
SubscriberHandler: sth,
DataChannelStats: p.dataChannelStats,
DropRemoteICECandidates: p.params.DropRemoteICECandidates,
}
if p.params.SyncStreams && p.params.PlayoutDelay.GetEnabled() && p.params.ClientInfo.isFirefox() {
// we will disable playout delay for Firefox if the user is expecting