简体   繁体   English

webrtc.PeerConnection 中的 OnNegotiationNeeded 事件未找到(pion golang)。 但是在官方文档中它表明它在那里

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

在我尝试列出 webrtc.PeerConnection 对象中的可用方法后从我的 PC 截屏 ur.com/3Nydn.png ur.com/3Nydn.png

The official docs pion webrtc doc shows that * func ( PeerConnection) OnNegotiationNeeded exists.官方文档pion webrtc doc显示 * func ( PeerConnection) OnNegotiationNeeded存在。 But actually this event is not present in the PeerConnection object. It can be checked from the given screenshot.但实际上此事件不存在于 PeerConnection object 中。可以从给定的屏幕截图中查看。 Also other events are present except this one.除此事件外,还存在其他事件。 What is the solution?解决办法是什么?

I think we talked about this on Slack and I think you solved it?我想我们在Slack上讨论过这个,我想你解决了它?

But for anyone else who hits this, OnNegotationNeeded only exists in /v3 which is still in beta.但是对于其他任何人来说, OnNegotationNeeded只存在于/v3中,它仍处于测试阶段。 If you want to use this make sure you aren't importing /v2 .如果您想使用它,请确保您没有导入/v2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM