Skip to content

getUserMedia undefined into adapter.js #304

Description

@brunopistone

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions