mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
Fix poorly named function in RTCPeerConnection
CreateOffer -> CreateAnswer currently `pion-WebRTC` can only generate offers not answers.
This commit is contained in:
@@ -57,7 +57,7 @@ func main() {
|
||||
}
|
||||
|
||||
// Sets the LocalDescription, and starts our UDP listeners
|
||||
if err := peerConnection.CreateOffer(); err != nil {
|
||||
if err := peerConnection.CreateAnswer(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user