Re: [webrtc-pc] need more clarifying? about example in MDN WebRTC perfect negotiation pattern (#2806)

Hi Adam, thanks for your interest in perfect negotiation! — It sounds like you have basic questions on how to write perfect negotiation code. Unfortunately, this issue tracker is only for discussing and requesting changes to the WebRTC specification itself, so I'm going to have to close this issue, as it is the wrong venue for code help questions.

For code help and general questions, I recommend reaching out on https://stackoverflow.com/search?q=%5Bwebrtc%5D+perfect (feel free to [ping me there](https://stackoverflow.com/users/918910/jib))

> can i use 1 object in this case for both connection to work for both end points in generaly without 
yourConn and yourConn2?

I'm not sure I follow your questions. It might help to familiarize yourself with regular negotiation first. Here's a simpler demo with regular (imperfect) negotiation https://jsfiddle.net/yxbLvjm6/ and my [blog](https://blog.mozilla.org/webrtc/perfect-negotiation-in-webrtc/) detailing its shortcomings (glare).

Note the canonical perfect negotiation needed example is https://www.w3.org/TR/webrtc/#perfect-negotiation-example, not MDN.

Lastly, here's a working jsfiddle demonstrating the perfect negotiation pattern: https://jsfiddle.net/jib1/Lhztcv89/

Hope that helps.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2806#issuecomment-1349750083 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 December 2022 21:28:56 UTC