She was captured on her own body-worn camera in a store cupboard with a prisoner, a court hears.