static changeVolume(player, session, callback, delta) {
        console.log("In  Change Volume with player %s", player.name);
        try {

            // Get the volume of the player

            player.getVolume(function(reply) {
                if (reply.ok) {
                    var volume = Number(reply.result) + delta;
                    player.setVolume(volume, function(reply) {
                        if (reply.ok) {
                            callback(session.attributes, Utils.buildSpeechResponse("Set Player Volume", "Player " + player.name + " set to volume " + volume, null, session.new));
                        } else {
                            console.log("Failed to set volume %j", reply);
                            callback(session.attributes, Utils.buildSpeechResponse("Set Player Volume", "Failed to set player volume", null, true));
                        }
                    });
                } else {
                    callback(session.attributes, Utils.buildSpeechResponse("Get Player Volume", "Failed to get volume for player " + player.name, null, true));
                }
            });

        } catch (ex) {
            console.log("Caught exception in stopPlayer %j", ex);
            callback(session.attributes, Utils.buildSpeechResponse("Get Player Volume", "Caught Exception", null, true));
        }
    }
/**
     * Get the current volume of a player and then perform a change static on it
     *
     * @param player The player to get the volume for
     * @param session The current session
     * @param callback The callback to use to return the result
     * @param delta The amount to change the player volume
     */
Get the current volume of a player and then perform a change static on it
@param player The player to get the volume for
@param session The current session
@param callback The callback to use to return the result
@param delta The amount to change the player volume
Get the current volume of a player and then perform a change static on it @param player The player to get the volume for @param session The current session @param callback The callback to use to return the result @param delta The amount to change the player volume
static changeVolume(player, session, callback, delta) {
        console.log("In  Change Volume with player %s", player.name);
        try {
            player.getVolume(function(reply) {
                if (reply.ok) {
                    var volume = Number(reply.result) + delta;
                    player.setVolume(volume, function(reply) {
                        if (reply.ok) {
                            callback(session.attributes, Utils.buildSpeechResponse("Set Player Volume", "Player " + player.name + " set to volume " + volume, null, session.new));
                        } else {
                            console.log("Failed to set volume %j", reply);
                            callback(session.attributes, Utils.buildSpeechResponse("Set Player Volume", "Failed to set player volume", null, true));
                        }
                    });
                } else {
                    callback(session.attributes, Utils.buildSpeechResponse("Get Player Volume", "Failed to get volume for player " + player.name, null, true));
                }
            });
        } catch (ex) {
            console.log("Caught exception in stopPlayer %j", ex);
            callback(session.attributes, Utils.buildSpeechResponse("Get Player Volume", "Caught Exception", null, true));
        }
    }
static changeVolume ( player , session , callback , delta ) { console . log ( "In  Change Volume with player %s" , player . name ) ; try { player . getVolume ( function ( reply ) { if ( reply . ok ) { var volume = Number ( reply . result ) + delta ; player . setVolume ( volume , function ( reply ) { if ( reply . ok ) { callback ( session . attributes , Utils . buildSpeechResponse ( "Set Player Volume" , "Player " + player . name + " set to volume " + volume , null , session . new ) ) ; } else { console . log ( "Failed to set volume %j" , reply ) ; callback ( session . attributes , Utils . buildSpeechResponse ( "Set Player Volume" , "Failed to set player volume" , null , true ) ) ; } } ) ; } else { callback ( session . attributes , Utils . buildSpeechResponse ( "Get Player Volume" , "Failed to get volume for player " + player . name , null , true ) ) ; } } ) ; } catch ( ex ) { console . log ( "Caught exception in stopPlayer %j" , ex ) ; callback ( session . attributes , Utils . buildSpeechResponse ( "Get Player Volume" , "Caught Exception" , null , true ) ) ; } }
Get the current volume of a player and then perform a change static on it
 @param player The player to get the volume for
 @param session The current session
 @param callback The callback to use to return the result
 @param delta The amount to change the player volume
Get the current volume of a player and then perform a change static on it @param player The player to get the volume for @param session The current session @param callback The callback to use to return the result @param delta The amount to change the player volume
// Get the volume of the player