mirror of
https://github.com/livekit/livekit.git
synced 2026-04-25 06:52:07 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user