Footage of a man injuring police in Newham on Thursday has been widely shared on social media.