Editor’s note: This report updates an earlier version clarifying the video-recorded actions of the defendants.

WARREN, Ohio (WKBN) – A man who was investigated following a video recording of his wife hurting a child was sentenced Tuesday.

Kyle McElravy, 29, was sentenced to nine months in prison after pleading guilty in July to two counts of attempted child endangering in Trumbull County Court of Common Pleas. He was accused of repeatedly hitting a child in the head with an object.

According to the Trumbull County Prosecutor’s Office, investigators began looking into McElravy’s actions after a video surfaced of his wife hurting a child.

The judge told McElravy that the facts of the case show him also to be culpable for the harm done to the child, according to the prosecutor’s office.

McElravy’s ex-wife Amber McElravy was sentenced in May to serve 12 months in prison after she pleaded guilty to four counts of third-degree felony endangering children charges.

Amber was accused of beating a 5-year-old boy with a belt and throwing him across the room. An investigation began after a video surfaced on social media showing the alleged abuse.

During an interview with WKBN in December, Amber McElravy blamed Kyle for starting the abuse and said she was the victim of physical and sexual abuse as a child.