A man was dumped by his girlfriend when he accidentally sent her video of himself cheating on her - with their dog.
According to Swindon Advertiser, David Buchanan, 34, of Fairford, appeared at Swindon Magistrates Court after pleading guilty to one count of sexual assault on March 7.
Keith Ballinger, prosecuting, told the court on Friday: "This comes to light because it is reported by his then partner.
"She was at work on this day and received on her mobile phone a 29 second video clip from a tablet computer. That video showed him having sex with their 10-month-old Rhodesian Ridgeback.
"It appears her mobile phone and the tablet are linked by the Cloud, and it is that way the video was sent to her.
"When arrested he said he knew he had done wrong and it was stupid.
"He had been at home watching pornography and wondered what it would be like to have sex with the dog."
Ellen McAnaw, defending Buchanan, said: "There is a great deal of embarrassment and shame about what happened. He spends most of his time at home drawing or playing XBox, and he doesn't seem to have any friends outside the previous relationship.
"He has no support from his family and since the offense has reduced his cannabis use.
"He maintains there is a bug on his device, which means it randomly starts recording."
Buchanan was made to register as a sex offender for seven years, with a 12-week suspended sentence for two years, 50 days of rehabilitation, £85 costs and £80 victim surcharge.