Comedian Kevin Hart speaks to reporters as he arrives on the red carpet for Eat My Shorts at the Short Films Premiere at the Just for Laughs comedy festival in Montreal, Thursday, July 27, 2017. (Graham Hughes/The Canadian Press via AP)

Kevin Hart enjoyed pretty good press last month as he was publicising his new book and calling on fellow celebrities to donate loads of cash to relief efforts after Hurricane Harvey. 

But now the megawatt spotlight is back on Hart, with some pretty unsavory story lines.

Late Saturday, Hart posted a somewhat cryptic video on Instagram saying he "made a bad error in judgement and put myself in an environment where only bad things can happen, and they did." He went on to say he's apologized to his kids and wife, Eniko Parrish, who is pregnant with the couple's first child together.

WATCH: Kevin Hart admits to cheating?

"I simply got to do better, but I'm also not going to allow a person to have financial gain over my mistakes," Hart said. "In this particular situation, that's what was attempted, and I said I'd rather fess up to my mistakes."

A representative for Hart said in a statement to People that "someone tried to set Kevin up in a failed extortion attempt. As law enforcement is involved, we cannot comment further as it could affect the investigation."

Here's what you need to know to understand what's going on:

"I'm at a place in my life where I feel like I have a target on my back, and because of that, I should make smart decisions, and recently, I didn't," Hart said in a video, not directly addressing extortion allegations. "And recently, I didn't. You know, I'm not perfect. I'm not going to sit up here and say that I am, or claim to be in any way shape or form, and I made a bad error in judgement and put myself in an environment where only bad things can happen, and they did. And in doing that, I know I'm going to hurt the people closest to me."

Soon after Hart's video went live, TMZ was out with a report that "a woman has allegedly demanded money from Kevin" with a video showing him and a woman engaged in "sexually suggestive" conduct. The outlet wrote that Hart's Instagram confession was him "getting out in front of a messy situation."

TMZ, which has been following the saga closely, followed up with a report that said an anonymous person demanded millions of dollars in exchange for keeping the video private. But the outlet, citing law enforcement sources, wrote that it's unclear whether the woman in the video or another person made the alleged demand.

On Tuesday, the outlet published a blurry still frame that is purportedly from the video in question.

This all followed a summer when celebrity gossip sites ran stories about Hart possibly cheating on his pregnant wife - including a blurry photos showing a man and a woman cozying up in a car.

Those cheating rumors eventually died down. And then on her wedding anniversary, Parrish posted a tribute to Hart - which then caused its own mini-controversy.

"I love you every day," she wrote. "8 years together. . . 1 year married. . . Forever to go!"

l i v e . l a u g h . l o v e 💫 #HARTS1YearAnniversary

A post shared by eníĸo • нarт 💋 (@enikonhart) on

But Hart separated from first wife, Torrei Hart, in February 2010, and the two divorced in 2011 - and that timeline caused a stir on social media, even prompting a back-and-forth between the two women on social media.

Parrish, in now-deleted comments on Instagram, wrote that "their marriage was broken way before I came in the picture. They were separated, living in separate homes. I was never a secret. She knew that as well. Don't believe the hype."

Torrei Hart, who co-parents her two children with Hart, told TMZ that "she forced my hand to address this publicly. The most important thing to me is my children, so if my children see something that she's writing that makes me look like a liar, no."

"I told them before I'm happy for them," she said. "They're about to have a baby. My kids are very happy they're about to have siblings on the way, I'm honestly happy for them, and I don't understand where all this is coming from."

Amid the reports about a possible extortion plot, Torrei Hart did a sit-down interview with "Inside Edition" that aired Monday night. She told the outlet that "lies and infidelity" led to the demise of her marriage with Hart, and that they had "grown apart."

She was also asked to comment on whether Hart would cheat again. "I don't know," she said. "All I can say is if it happened to me, it could happen to anyone."

Hart has publicly addressed his history with cheating

"Lying ruined my marriage. . . . That's a lie, I cheated," Hart said in his 2013 stand-up special "Kevin Hart: Let Me Explain."

"Yes, people, I cheated. Am I ashamed of it? No, I'm not," he joked. "Do I wish I could take it back? No, no I don't. Let me tell you why. You can't evolve as a man if you never make a mistake. The only way that you can be perfect is to not f- - - up. I did it, I f- - - ed up. Don't cheat!"

The comedian's career has blown up in the past decade as he's evolved his act to take his personal stories to the stage. Of course, a stand-up comic's act can't always - and often shouldn't - be treated as a factual recounting of the past. But Hart has also, in sit-down interviews, talked about his first marriage with Torrei Hart.

"I was young on my first marriage," Hart told Chelsea Handler in 2016. "I'm not ashamed to say it, guys. I got married at the age of 22. I was still all over the place. I didn't really understand the definition of marriage. So I wasn't ready for it, so I take responsibility. I can say I messed my first marriage up. I'm man enough to say that."

Hart added: "At the same time, that was when I was in the prime of my sexy, so don't blame me. That's when I was figuring it out."

The interview with Handler came just a few months after he married Eniko Parrish.

"I will say that me and my ex-wife, regardless of the problems we went through, are in an amazing place now where we're friends, we're great parents, we're co-parents, but we have a relationship," Hart continued. "And now that I've moved on and I've met somebody else, to make this step was a big step. It took some time, it took seven years, but I was like, you know what, she deserves it because I can't keep letting us walk around free. That's not fair to her, like, I got to lock this up - I'm talking about my body."

Handler began laughing uncontrollably as he kept going: "So I proposed, man, and I can honestly say - that wasn't a joke! I was serious. I'm happy. I'm in love. I found a good woman."