Skip to content

Commit

Permalink
Fix comment to reflect reality, rewrite use of deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
la3lma authored and Sean-Der committed May 4, 2020
1 parent f38a367 commit 4755a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func createVoicemail(w http.ResponseWriter, r *http.Request) {
}
})

// Allow us to receive 1 audio track, and 1 video track
if _, err = peerConnection.AddTransceiver(webrtc.RTPCodecTypeAudio); err != nil {
// Allow us to receive 1 audio track.
if _, err = peerConnection.AddTransceiverFromKind(webrtc.RTPCodecTypeAudio); err != nil {
panic(err)
}

Expand Down

0 comments on commit 4755a8c

Please sign in to comment.