Fix poorly named function in RTCPeerConnection

CreateOffer -> CreateAnswer currently `pion-WebRTC` can only generate
offers not answers.
This commit is contained in:
Sean DuBois
2018-07-04 00:46:01 -07:00
parent 3b3ed9a544
commit 24a312c34d
4 changed files with 8 additions and 5 deletions

View File

@@ -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)
}