Roommate pleads guilty to charge in Rutgers webcam case

FILE – In this March 2, 2012, file photo, Dharun Ravi waits for his trial to begin at the Middlesex County Courthouse in New Brunswick, N.J. Ravi, a former Rutgers University student, whose roommate Tyler Clementi killed himself in 2010 after being captured on a webcam kissing another man, pleaded guilty Thursday, Oct. 27, 2016, to attempted invasion of privacy, and was sentenced to probation and 30 days time served. (John Munson/The Star-Ledger via AP, Pool, File) (The Associated Press)

FILE – In this June 19, 2012, file photo, Dharun Ravi, right, and his attorney Steven Altman, left, walk out of Middlesex County jail in North Brunswick, N.J. Ravi, a former Rutgers University student, whose roommate Tyler Clementi killed himself in 2010 after being captured on a webcam kissing another man, pleaded guilty Thursday, Oct. 27, 2016, to attempted invasion of privacy, and was sentenced to probation and 30 days time served. (AP Photo/Mel Evans, File) (The Associated Press)

FILE – In this Dec. 9, 2011, file photo, Jane Clementi, right, the mother of Tyler Clementi, looks at family photographs as her husband Joseph Clementi, back left, the father of Tyler Clementi, speaks to a reporter in their home in Ridgewood, N.J. Former Rutgers University student Dharun Ravi, whose roommate Tyler Clementi killed himself in 2010 after being captured on a webcam kissing another man, pleaded guilty Thursday, Oct. 27, 2016, to attempted invasion of privacy, and was sentenced to probation and 30 days time served. (AP Photo/Mel Evans, File) (The Associated Press)

A former Rutgers University student whose roommate killed himself after being captured on a webcam kissing another man has pleaded guilty to attempted invasion of privacy.

Thursday's plea from Dharun Ravi (dah-ROON' RAH'-vee) comes after an appeals court last month threw out a 15-count conviction against him in a case that stemmed from the 2010 death of 18-year-old Tyler Clementi.

Clementi's death started a national conversation about the treatment of young gays.

Ravi was sentenced Thursday to probation plus 30 days in jail, and won't serve any additional jail time under the plea agreement. He had faced up to 10 years in prison.

The plea comes after the court tossed several bias intimidation counts because of a change in New Jersey law and ordered a new trial on other counts.