code: function stopAllActivePlayers(connection) {
  	return connection.Player.GetActivePlayers().then(function(players) {
  		/* Stop everything thats playing */
  		return Promise.all(players.map(function(player) {
  			return connection.Player.Stop(player.playerid);
  		}));
  	});
  }
docs: /* Utility function to stop all active players of a kodi instance