Josh Hartnett must have put on the performance of his lifetime as a whole team of hotel employees watched him have sex with some chick.

Hartnett and his lady friend had gone into the Soho hotel’s library, and apparently weren’t wanting to read or study. Well unless studying one another’s anatomy counts!

Hartnett, 30, were viewed getting it on and the source said, “Josh and the girl were getting pretty hot and heavy.

The couple came in very late, and took to the library in the hotel. They closed all the curtains so that no one would see in there.

But as the source stated, “Unfortunately the hotel has security cameras all over the place – the library included. ”

“This means their every spit and cough was recorded, and cringing hotel workers saw all of Josh’s X-rated moves.”

“No one quite knew where to look and there was a very awkward silence. Josh didn’t seem bothered that the library wasn’t locked and anyone could just burst in. He just kind of went for it.”

“After the event, someone had a quiet word in Josh’s ear and he was asked to take his personal business elsewhere in future. Josh took it on the chin and didn’t kick up a fuss. He’s been as good as gold since.”

Damn, talk about being caught with your pants down, and on video at that! Pretty funny story though!