OnNegotiationNeeded event in webrtc.PeerConnection not found (pion golang). But in official docs it show that it's there

489 Views Asked by At

Screenshot from my PC after I tried to list out available methods in webrtc.PeerConnection objectur.com/3Nydn.png

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?

1

There are 1 best solutions below

0
Sean DuBois On

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.