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
+3
View File
@@ -93,6 +93,7 @@ type TransportManagerParams struct {
PublisherHandler transport.Handler
SubscriberHandler transport.Handler
DataChannelStats *telemetry.BytesTrackStats
DropRemoteICECandidates bool
}
type TransportManager struct {
@@ -146,6 +147,7 @@ func NewTransportManager(params TransportManagerParams) (*TransportManager, erro
ClientInfo: params.ClientInfo,
Transport: livekit.SignalTarget_PUBLISHER,
Handler: TransportManagerPublisherTransportHandler{TransportManagerTransportHandler{params.PublisherHandler, t}},
DropRemoteICECandidates: params.DropRemoteICECandidates,
})
if err != nil {
return nil, err
@@ -168,6 +170,7 @@ func NewTransportManager(params TransportManagerParams) (*TransportManager, erro
DataChannelMaxBufferedAmount: params.DataChannelMaxBufferedAmount,
Transport: livekit.SignalTarget_SUBSCRIBER,
Handler: TransportManagerTransportHandler{params.SubscriberHandler, t},
DropRemoteICECandidates: params.DropRemoteICECandidates,
})
if err != nil {
return nil, err