mirror of
https://github.com/pion/webrtc.git
synced 2025-10-16 04:00:42 +08:00
Fix poorly named function in RTCPeerConnection
CreateOffer -> CreateAnswer currently `pion-WebRTC` can only generate offers not answers.
This commit is contained in:
@@ -55,7 +55,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