code: function _getUserMedia(mediaConstraints, success, error) {
      PluginProxies.createMediaPeer(function(err, plugin) {
        if (err) {
          error.call(OTPlugin, err);
          return;
        }
  
        plugin._.getUserMedia(mediaConstraints.toHash(), function(streamJson) {
          success.call(OTPlugin, MediaStream.fromJson(streamJson, plugin));
        }, error);
      });
    }
docs: Helper function for OTPlugin.getUserMedia