Add option to not re-use transceiver in e2ee. (#4356)

This commit is contained in:
Raja Subramanian
2026-03-11 17:41:13 +05:30
committed by GitHub
parent 95225ff2e1
commit 0d34e45572
4 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
}
sub.VerifySubscribeParticipantInfo(subTrack.PublisherID(), subTrack.PublisherVersion())
if sub.SupportsTransceiverReuse() {
if sub.SupportsTransceiverReuse(t.params.MediaTrack) {
//
// AddTrack will create a new transceiver or re-use an unused one
// if the attributes match. This prevents SDP from bloating