eface2face / rtcninja.js

WebRTC library to make media management easier across different browsers.
MIT License
73 stars 23 forks source link

RTCPeerConnection has no way to set constraints #9

Closed nicketson closed 9 years ago

nicketson commented 9 years ago

JsSIP exposes an argument "rtcConstraints" which gets passed to the rtcninja.RTCPeerConnection() constructor. RTCPeerConnection deosn't do anything with the argument though.

http://jssip.net/documentation/0.6.x/api/ua/#method_call

ibc commented 9 years ago

The rtcConstraints argument in the RTCPeerConnection is deprecated in the latest WebRTC draft:

http://www.w3.org/TR/webrtc/#interface-definition

Constraints must be set in createOffer() and createAnswer(). That's why rtcninja ignores it.