Don't require media sections when joining (#4535)

* Don't require media sections when joining

Client except browser (rust/libwebrtc is known) could have problem
to fire ontrack event when reuses extra media section to subscribe
track, so disable this feature in server side and let client determine
if extra media sections are needed.

* lint
This commit is contained in:
cnderrauber
2026-05-20 13:28:51 +08:00
committed by GitHub
parent 019a6640ae
commit 8ab92a80f6
3 changed files with 51 additions and 62 deletions
-4
View File
@@ -67,10 +67,6 @@ func (p *ParticipantImpl) SendJoinResponse(joinResponse *livekit.JoinResponse) e
p.queuedUpdates = nil
p.updateLock.Unlock()
if p.params.RequireMediaSectionWithJoinResponse && p.params.UseSinglePeerConnection {
p.sendMediaSectionsRequirement(audioSectionsCountWithJoinResponse, videoSectionsCountWithJoinResponse)
}
if len(queuedUpdates) > 0 {
return p.SendParticipantUpdate(queuedUpdates)
}