-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
Hi, I'm trying to test the adapter.js in order to make WebRTC video calls through IE11.
I have the following problem:
into the method getUserMeda is called the method AdapterJS.WebRTCPlugin.plugin.getUserMedia. The problem is that the latest getUserMedia is undefined!.
During the debug, I've seen that into AdapterJS.WebRTCPlugin.plugin it's not defined any getUserMedia method.
The piece of code that it's not working is:
getUserMedia = function (constraints, successCallback, failureCallback) {
var cc = {};
cc.audio = constraints.audio ?
constraintsToPlugin(constraints.audio) : false;
cc.video = constraints.video ?
constraintsToPlugin(constraints.video) : false;
AdapterJS.WebRTCPlugin.callWhenPluginReady(function() {
AdapterJS.WebRTCPlugin.plugin.
getUserMedia(cc, successCallback, failureCallback);
});
};
window.navigator.getUserMedia = getUserMedia;
UPDATE:
Using adapter.screenshare.js, AdapterJS.WebRTCPlugin.plugin.getUserMedia now it's defined, but in my wrapper, when i try to invoke callback functions, I have the error Member not found.
This is the piece of code of my wrapper:
getUserMedia(this.offer_constraints, function (stream) {
gotDevice(stream);
}, function (err) {
failDevice(err);
});
Any idea? Thanks for the help.
dkrusenstrahle
Metadata
Metadata
Assignees
Labels
No labels