Code refactoring

Code refactoring
This commit is contained in:
Alexey Khit
2023-03-01 18:03:11 +03:00
parent c70c3a58f1
commit c2cdf60ffc
7 changed files with 34 additions and 17 deletions
+11
View File
@@ -0,0 +1,11 @@
## StateChange
1. offer = pc.CreateOffer()
2. pc.SetLocalDescription(offer)
3. OnICEGatheringStateChange: gathering
4. OnSignalingStateChange: have-local-offer
*. OnICEGatheringStateChange: complete
5. pc.SetRemoteDescription(answer)
6. OnSignalingStateChange: stable
7. OnICEConnectionStateChange: checking
8. OnICEConnectionStateChange: connected
+1 -1
View File
@@ -57,7 +57,7 @@ func (c *Conn) GetAnswer() (answer string, err error) {
return
}
return desc.SDP, nil
return c.pc.LocalDescription().SDP, nil
}
func (c *Conn) GetCompleteAnswer() (answer string, err error) {