A teenager was caught on camera attempting to rape a six-year-old girl by the child’s 12-year-old sister.
The pre-teen had become suspicious of the 17-year-old boy and his growing obsession with her younger sibling.
Mum stole £2,700 of groceries in elaborate self-service checkout scam
She allegedly set up an iPad in the child’s bedroom and clicked on record.
The High Court in Glasgow heard that the device caught the teenager, who cannot be named for legal reasons, attempting to rape the primary school pupil.
At one point, he allegedly took out his mobile phone to try and record what he was doing.
‘At one point in the footage the six-year-old is seen to flinch as if she was in pain.’
The teenage boy from Edinburgh admitted attempting to rape the six-year-old on April 9, 2016.
Nazi-obsessed teenager made pipe bomb and praised Jo Cox’s murderer
He also pleaded guilty to sexually abusing her and having a number of indecent photographs of children, some of them babies, being sexually abused.
The court heard that in total, there were 896 indecent photographs of children over two phones owned by the teenager.
Mr Brown added: ‘Police also searched the accused’s home and found a memory card with three videos of the six-year-old being sexually abused by the accused.’
The teenager will be sentenced at High Court in Edinburgh next month.
He will also be placed on the sex offenders’ register.