registerProvider_(provider, config = undefined) {
    if (this.getProviderByName(provider.getName())) {
      this.logger_.warning(
          'Provider ' + provider.getName() + ' already registered.');
      return;
    }

    try {
      provider.initialize(config);
      this.providers_.push(provider);
      this.sinkAvailabilityMap_.set(
          provider.getName(), mr.SinkAvailability.UNAVAILABLE);
    } catch (/** Error */ error) {
      this.logger_.warning(
          'Provider ' + provider.getName() + ' failed to initialize.', error);
    }
  }
/**
   * Registers a provider and initializes it.
   * @param {!mr.Provider} provider
   * @param {!mojo.MediaRouteProviderConfig=} config
   * @private
   */
Registers a provider and initializes it.
Registers a provider and initializes it .
registerProvider_(provider, config = undefined) {
    if (this.getProviderByName(provider.getName())) {
      this.logger_.warning(
          'Provider ' + provider.getName() + ' already registered.');
      return;
    }
    try {
      provider.initialize(config);
      this.providers_.push(provider);
      this.sinkAvailabilityMap_.set(
          provider.getName(), mr.SinkAvailability.UNAVAILABLE);
    } catch ( error) {
      this.logger_.warning(
          'Provider ' + provider.getName() + ' failed to initialize.', error);
    }
  }
registerProvider_ ( provider , config = undefined ) { if ( this . getProviderByName ( provider . getName ( ) ) ) { this . logger_ . warning ( 'Provider ' + provider . getName ( ) + ' already registered.' ) ; return ; } try { provider . initialize ( config ) ; this . providers_ . push ( provider ) ; this . sinkAvailabilityMap_ . set ( provider . getName ( ) , mr . SinkAvailability . UNAVAILABLE ) ; } catch ( error ) { this . logger_ . warning ( 'Provider ' + provider . getName ( ) + ' failed to initialize.' , error ) ; } }
Registers a provider and initializes it.
Registers a provider and initializes it .
/** Error */