Demi Lovato depicted scenes before and after her near-fatal overdose in July 2018 in a new music for her single,"Dancing with the Devil."

The video comes after amid the release of her YouTube documentary of the same name.

At the very start of the 5-minute long video, a message to viewers reads: "This video contains content depicting addiction, drug use, trauma, and sexual abuse which may be triggering for some."

It begins with Lovato lying in a hospital bed hooked up to tubes. It also shows flashbacks from the night prior, where she sips red wine and takes shots of alcohol while wearing a green jacket. Lovato was reportedly wearing a green jacket during the night she was out with friends prior to her overdose and subsequent hospitalization on July 24, 2018.

DEMI LOVATO REVEALS SHE'S HAD SUICIDAL THOUGHTS HER 'WHOLE LIFE'

Demi Lovato released the music video for her song 'Dancing with the Devil' on Friday.

Demi Lovato released the music video for her song 'Dancing with the Devil' on Friday. (Rich Fury/Getty Images for OBB Media)

DEMI LOVATO’S ‘DANCING WITH THE DEVIL’ DOCUSERIES: 5 THINGS WE LEARNED FROM THE FIRST HALF OF THE YOUTUBE DOC

The video also includes audio from news outlets covering Lovato's 2018 hospitalization for the then-suspected heroin overdose. In one scene, a man believed to be depicting Lovato's drug dealer walks up to her bed, stands over her, turns her on her side before leaving the room.

Moments later, she is being rushed to a hospital.

As of Friday, the first three of four parts of the YouTube documentary have been released. In it, Lovato recalls celebrating a friend's birthday at a party on July 23, 2018. She notes that, at the time, no one knew she was using crack cocaine and heroin. Lovato returned home with some friends and after they left around 5:30 am she called up her drug dealer.  

On the morning of July 24th, the singer was discovered by her now-former assistant. The singer was naked, covered in her own vomit, and turning blue. The assistant alerted Lovato's head of security and later snuck away to call 911 which saved Lovato's life.  

DEMI LOVATO WANTED TO 'QUIT' SOBRIETY AFTER BEING CALLED 'MORBIDLY OBESE' FOLLOWING 2018 OVERDOSE

Demi Lovato revealed she suffered three strokes and a heart attack from her 2018 overdose.

Demi Lovato revealed she suffered three strokes and a heart attack from her 2018 overdose. (Christopher Polk/E! Entertainment/NBCU Photo Bank via Getty Images)

After being administered Narcan by paramedics, Lovato was rushed to the hospital where she had severely low oxygen levels and had three strokes and a heart attack. Lovato revealed she suffered permanent brain damage, vision impairment, and can no longer drive. She said she woke up in the hospital and couldn't see.

The singer said she wasn't trying to overdose and if her assistant had waited for another five to 10 minutes, Lovato would have died.

CLICK HERE TO SIGN UP FOR OUR ENTERTAINMENT NEWSLETTER

Lovato alleges that she was sexually assaulted by her drug dealer the night she overdosed after he gave her "aftermarket pills" which were laced with Fentanyl. She said he left her for dead and she was not able to consent to sex while high. 

CLICK HERE TO GET THE FOX NEWS APP

"That kind of trauma doesn’t go away overnight," she said. "And it doesn’t go away in the first few months of rehab either. That’s something that sticks with you for a while after."

If you or someone you know is suffering from abuse, please contact the National Sexual Assault Hotline at 1-800-656-4673.

Fox News' Jessica Napoli contributed to this report.