vendor/opentok.js
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);
    });
  }
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);
    });
  }
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 ) ; } ) ; }
Helper function for OTPlugin.getUserMedia
Helper function for OTPlugin . getUserMedia