You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was raised in a comment by @nazar-pc and didn't want it to get lost:
I have a generic concern about constraints separation. Second argument constraints in RTCPeerConnection was removed from the spec a long time ago. At the same time answer/offer constraints are obvious from the context.
I'd like to see a single peer.setConstraints() method that under the hood resolves to either offerConstraints or answerConstraints and do not even expose this separation for the user. In future major version I'd remove this separation entirely in constructor options too.
It was actually implemented in mentioned PR with a subsequent commit: 692d18e
Also constraints were replaced with options in #440 and peer.setConstraints() is gone.
Thanks for the response @nazar-pc. I actually opened this issue because I was wondering if it's possible to eliminate the distinction between offerOptions and answerOptions. It seems that that can be determined purely based on the value of the initiator option.
In fact, setting { initiator: true, answerOptions: { ... } will cause answerOptions to be ignored. It's a minor API detail, but wondering if we can't make this cleaner?
This issue was raised in a comment by @nazar-pc and didn't want it to get lost:
Originally posted by @nazar-pc in #324 (comment)
The text was updated successfully, but these errors were encountered: