A man uploaded secret footage of himself having sex with two men online without their consent.
Richard Williamson, 46, uploaded the separate encounters from his flat in Hyndland, Glasgow.
Glasgow Sheriff Court heard he chatted to the pair online and arranged to meet them.
A 45-year-old man had consensual sex with Williamson in July 2018.
But, in December 2018 he received a message from a second 23-year-old victim.
Prosecutor Mark Allan said: “Details were provided of a website which captured him and Williamson engaged in sexual intercourse.”
The victim messaged Williamson to delete the video which he did before deleting his account on the website.
The hearing was also told how the 23-year-old had consensual sex on two occasions with Williamson.
Mr Allan added: “Like the other victim, was unaware that he was being filmed or the video had been uploaded.”
He contacted the other victim and then ordered Williamson to remove the video.
Williamson then deleted the video before the matter was reported to the police.
He was later traced and arrested.
On Monday, Williamson pled guilty to separate charges of recording the men without their consent.
He also admitted disclosing the films to the public at large which appeared to show the victims in an intimate situation.
Sentencing was deferred until the end of February pending background reports.
Sheriff Gerard Considine put Williamson on the sex offenders register and granted him bail meantime.
Follow STV News on WhatsApp
Scan the QR code on your mobile device for all the latest news from around the country