Hi!
I'm developing a WebRTC project, which I am upgrading to use Temasys's plugin to get it to work with IE11.
I've noticed that there's an incompatibility between Temasys's AdapterJS file and Chrome 50:
For IE, to create an answer I call the (fairly standard) createAnswer with callbacks
pc.createAnswer(function(sdp){
setLocalAndSendMessage(sdp, false);
}, null, sdpConstraints);
However, in Chrome 50, createAnswer with callbacks is deprecated and so no longer works in this fashion. Instead, it must use the promise-style call.
pc.createAnswer(sdpConstraints).then(function(answer) {
return setLocalAndSendMessage(answer, false);
}).catch(handleUserMediaError);
Attempting to call createAnswer with callbacks raises an error within AdapterJS:
adapter.min.js:908 Uncaught TypeError: Failed to execute 'createAnswer' on 'RTCPeerConnection': The callback provided as parameter 2 is not a function.
I'm just wondering if:
A) I'm doing something wrong
B) If anyone else has experienced this
C) If Temasys is aware/is going to patch this?
In the meantime, I'm going to add my own workaround, but I just wanted to feed this back to the community.
Thanks, and keep up the good work!
Soen