Closed zdila closed 7 years ago
Those constraints are chrome-specific. What constraints are you trying to pass?
Thank you. You were right. After fixing that problem we are getting SCRIPT5022: InvalidAccessError
at line marked with XXX
:
} else if (navigator.mediaDevices && navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)) {
// Attach a media stream to an element.
attachMediaStream = function(element, stream) {
element.srcObject = stream; // XXX
return element;
};
So far we are trying to do audio-only call.
that looks like a very, very old version of adapter...
It is 0.14.0, latest in the npm repository.
https://github.com/Temasys/AdapterJS/blob/master/publish/adapter.debug.js
this npm package for this adapter is https://www.npmjs.com/package/webrtc-adapter
Thanks. But does that one support MSIE and Safari? Because this one "provides support for WebRTC in Internet Explorer and Safari on Mac and Windows through the available Temasys Browser Plugins.".
Oh sorry. I reported this issue to wrong project then :-O
zdila, how exactly did you fix "Legacy mandatory/optional constraints not supported"?
@AndriiDronDiachuk replace any createOffer({mandatory: {OfferToReceiveAudio: true}}) or similar with createOffer({offerToReceiveAudio: true}). Firefox should complain a lot about this already.
Browsers and versions affected AdapterJS 0.14.0
Edge 38 on Windows 10
Description
Exteption with message "Legacy mandatory/optional constraints not supported." when calling
createOffer