Consider this sentence:
A-"He was shouting when he was brought into the room."
I think it would normally mean:
1-He was shouting when he was being brought into the room.
but could it also mean:
2-He was shouting once he was brought into the room. (After he was brought into the room).?
Being brought into a room is an action of fairly short duration, so there is no need for the progressive form. I would imagine that the shouting started before his entrance and continued afterwards, but probably not for long.