“Respect the family and back off,” he added, using obscenities to describe Ms. King in a video viewed more than a million times. He also posted several pictures of Ms. King, as well as her friend Oprah Winfrey, posing with Harvey Weinstein, the film mogul who has been accused of sexual misconduct by more than 90 women.

But on Wednesday, Snoop Dogg apologized in an Instagram post, saying that he had “overreacted” and that he was praying for Ms. King as well as for Vanessa Bryant, Mr. Bryant’s widow, and the couple’s children.

“I publicly tore you down by coming at you in a derogatory manner based off of emotions of me being angry at questions that you asked,” he said in the video.

“I should have handled it way different than that,” he continued. “I was raised way better than that, so I would like to apologize to you publicly for the language that I used and calling you out of your name and just being disrespectful. I didn’t mean for it to be like that. I was just expressing myself for a friend that wasn’t here to defend himself.”

“I apologize,” Snoop Dogg said.

Ms. King said in a statement on Thursday night that she could see both sides of the sensitive issue about Mr. Bryant’s legacy.