They were cooped up for two hours having fun.
They'd been cooped up there for over two hours, because the director was known for his pedantic qualities and now with his every comment, he confirmed a rumor about him that was circulating at the airport.