I'm not sure how to describe the use of the bolded words in the following cases:
Pete is happy singing a song
Anna talked screaming
Mike entered the room screaming and laughing
Is it acting as an adverb? Or has a preposition been elided?
Pete is happy while singing a song
Anna talked while screaming
Mike entered the room while screaming and laughing