Pupil gay sex recorded at home