The official docs pion webrtc doc shows that *func (PeerConnection) OnNegotiationNeeded exists. But actually this event is not present in the PeerConnection object. It can be checked from the given screenshot. Also other events are present except this one. What is the solution?
Asked
Active
Viewed 439 times
1 Answers
0
I think we talked about this on Slack and I think you solved it?
But for anyone else who hits this, OnNegotationNeeded
only exists in /v3
which is still in beta. If you want to use this make sure you aren't importing /v2
.

Sean DuBois
- 3,972
- 1
- 11
- 22