_getResponseValue(message, defaultValue) {

    if (typeof defaultValue === 'undefined') {
      defaultValue = null;
    }

    return this.send(message)
      .then(this._getMessageValue)
      .catch(function (error) {
        return defaultValue;
      });
  }
/**
   * Gets the value of the response sent by PBS to a request sent to the PBS
   * player API. If a default value is passed in then this will resolve to that
   * value in the case that a value can not be extract from the response. If
   * no default value is passed in then null will be the default value.
   *
   * @param {string} message The message request to send
   * @param {*} [defaultValue] The default value to resolve to if a value can
   *                           not be determined
   * @returns {Promise.<T>} A promise that will resolve to either the value of
   *                        the response, or a default value
   *
   * @private
   */
Gets the value of the response sent by PBS to a request sent to the PBS
player API. If a default value is passed in then this will resolve to that
value in the case that a value can not be extract from the response. If
no default value is passed in then null will be the default value.

@param {string} message The message request to send
@param {*} [defaultValue] The default value to resolve to if a value can
not be determined
@returns {Promise.} A promise that will resolve to either the value of
the response, or a default value

@private
Gets the value of the response sent by PBS to a request sent to the PBS player API . If a default value is passed in then this will resolve to that value in the case that a value can not be extract from the response . If no default value is passed in then null will be the default value . @param { string } message The message request to send @param { * } [ defaultValue ] The default value to resolve to if a value can not be determined @returns { Promise . } A promise that will resolve to either the value of the response or a default value @private
_getResponseValue(message, defaultValue) {
    if (typeof defaultValue === 'undefined') {
      defaultValue = null;
    }
    return this.send(message)
      .then(this._getMessageValue)
      .catch(function (error) {
        return defaultValue;
      });
  }
_getResponseValue ( message , defaultValue ) { if ( typeof defaultValue === 'undefined' ) { defaultValue = null ; } return this . send ( message ) . then ( this . _getMessageValue ) . catch ( function ( error ) { return defaultValue ; } ) ; }
Gets the value of the response sent by PBS to a request sent to the PBS
 player API.
Gets the value of the response sent by PBS to a request sent to the PBS player API .