Revert participant state ACTIVE change. (#3598)

Had made the change to align `participant active` to after the ICE
connection is done and that log could list all candidates.

But, with one shot signalling, the state change has to be early to wait
on (auto) subscriptions of track of other participant. So, state has to
be changed early.
This commit is contained in:
Raja Subramanian
2025-04-09 12:12:56 +05:30
committed by GitHub
parent 35ac5f561a
commit 2e236a193e

View File

@@ -903,7 +903,11 @@ func (p *ParticipantImpl) HandleOffer(offer webrtc.SessionDescription) error {
}
offer = p.setCodecPreferencesForPublisher(offer)
return p.TransportManager.HandleOffer(offer, shouldPend)
err := p.TransportManager.HandleOffer(offer, shouldPend)
if p.params.UseOneShotSignallingMode {
p.updateState(livekit.ParticipantInfo_ACTIVE)
}
return err
}
func (p *ParticipantImpl) onPublisherAnswer(answer webrtc.SessionDescription) error {