code: async function stopAllActivePlayers(con) {
  	const players = await con.Player.GetActivePlayers();
  
  	await Promise.all(players.map(player => {
  		con.Player.Stop(player.playerid);
  	}));
  }
docs: /* Utility function to stop all active players of a kodi instance