mirror of
https://github.com/livekit/livekit.git
synced 2026-11-04 06:57:29 +00:00
publisher check
This commit is contained in:
1 parent
eb156d2f8c
commit
b3de96ccc2
1 file changed
+3
-1
@@ -621,7 +621,9 @@ func (t *TransportManager) configureICE(iceConfig *livekit.ICEConfig, reset bool
|
||||
t.mediaLossProxy.OnMediaLossUpdate(nil)
|
||||
}
|
||||
|
||||
t.publisher.SetPreferTCP(iceConfig.PreferencePublisher == livekit.ICECandidateType_ICT_TCP)
|
||||
if t.publisher != nil {
|
||||
t.publisher.SetPreferTCP(iceConfig.PreferencePublisher == livekit.ICECandidateType_ICT_TCP)
|
||||
}
|
||||
t.subscriber.SetPreferTCP(iceConfig.PreferenceSubscriber == livekit.ICECandidateType_ICT_TCP)
|
||||
|
||||
if onICEConfigChanged != nil {
|
||||
|
||||
Reference in new issue
Block a user