static pause(player, session, callback) {

        "use strict";
        try {

            // Pause the player

            console.log("In pausePlayer with player %s", player.name);
            player.pause(1, function(reply) {

                console.log("got reply: " + reply);
                if (reply.ok) {
                    callback(session.attributes, Utils.buildSpeechResponse("Pause Player", "Paused " + player.name + " squeezebox", null, session.new));
                } else {
                    console.log("Reply %j", reply);
                    callback(session.attributes, Utils.buildSpeechResponse("Pause Player", "Failed to pause player " + player.name + " squeezebox", null, true));
                }
            });

        } catch (ex) {

            console.log("Caught exception in pausePlayer %j", ex);
            callback(session.attributes, Utils.buildSpeechResponse("Pause Player", "Caught Exception", null, true));
        }
    }
/**
     * Pause a player
     *
     * @param player The player to stop
     * @param session The current session
     * @param callback The callback to use to return the result
     */
Pause a player
@param player The player to stop
@param session The current session
@param callback The callback to use to return the result
Pause a player @param player The player to stop @param session The current session @param callback The callback to use to return the result
static pause(player, session, callback) {
        "use strict";
        try {
            console.log("In pausePlayer with player %s", player.name);
            player.pause(1, function(reply) {
                console.log("got reply: " + reply);
                if (reply.ok) {
                    callback(session.attributes, Utils.buildSpeechResponse("Pause Player", "Paused " + player.name + " squeezebox", null, session.new));
                } else {
                    console.log("Reply %j", reply);
                    callback(session.attributes, Utils.buildSpeechResponse("Pause Player", "Failed to pause player " + player.name + " squeezebox", null, true));
                }
            });
        } catch (ex) {
            console.log("Caught exception in pausePlayer %j", ex);
            callback(session.attributes, Utils.buildSpeechResponse("Pause Player", "Caught Exception", null, true));
        }
    }
static pause ( player , session , callback ) { "use strict" ; try { console . log ( "In pausePlayer with player %s" , player . name ) ; player . pause ( 1 , function ( reply ) { console . log ( "got reply: " + reply ) ; if ( reply . ok ) { callback ( session . attributes , Utils . buildSpeechResponse ( "Pause Player" , "Paused " + player . name + " squeezebox" , null , session . new ) ) ; } else { console . log ( "Reply %j" , reply ) ; callback ( session . attributes , Utils . buildSpeechResponse ( "Pause Player" , "Failed to pause player " + player . name + " squeezebox" , null , true ) ) ; } } ) ; } catch ( ex ) { console . log ( "Caught exception in pausePlayer %j" , ex ) ; callback ( session . attributes , Utils . buildSpeechResponse ( "Pause Player" , "Caught Exception" , null , true ) ) ; } }
Pause a player
 @param player The player to stop
 @param session The current session
 @param callback The callback to use to return the result
Pause a player @param player The player to stop @param session The current session @param callback The callback to use to return the result
// Pause the player