Move reset of local description sent on ICE restart internally (#909)

This commit is contained in:
Raja Subramanian
2022-08-12 13:04:06 +05:30
committed by GitHub
parent 692c4d804f
commit b7c44f1ecd
3 changed files with 26 additions and 23 deletions
+4 -5
View File
@@ -173,8 +173,8 @@ func (t *TransportManager) GetPublisherRTPReceiver(mid string) *webrtc.RTPReceiv
return t.publisher.GetRTPReceiver(mid)
}
func (t *TransportManager) SetPublisherLocalDescriptionSent(sent bool) {
t.publisher.SetLocalDescriptionSent(sent)
func (t *TransportManager) PublisherLocalDescriptionSent() {
t.publisher.LocalDescriptionSent()
}
func (t *TransportManager) WritePublisherRTCP(pkts []rtcp.Packet) error {
@@ -201,8 +201,8 @@ func (t *TransportManager) OnSubscriberStreamStateChange(f func(update *sfu.Stre
t.subscriber.OnStreamStateChange(f)
}
func (t *TransportManager) SetSubscriberLocalDescriptionSent(sent bool) {
t.subscriber.SetLocalDescriptionSent(sent)
func (t *TransportManager) SubscriberLocalDescriptionSent() {
t.subscriber.LocalDescriptionSent()
}
func (t *TransportManager) HasSubscriberEverConnected() bool {
@@ -375,7 +375,6 @@ func (t *TransportManager) ICERestart(iceConfig *types.IceConfig) error {
t.SetICEConfig(*iceConfig)
}
t.subscriber.SetLocalDescriptionSent(false)
return t.subscriber.CreateAndSendOffer(&webrtc.OfferOptions{
ICERestart: true,
})