The whole shocking incident was captured on police bodycam - and was played to the court