I'm fairly certain taking naked video of people in sexual encounters where they have a reasonable expectation of privacy isn't just bad manners, but probably illegal. Especially if you then go and publish said video to the world. I think the only reason this case might be murky is since they were roommates, Ravi had the right to be in the room and didn't have to break and enter to install a camera.
Still, just because you live in a house doesn't, say, give you the right to record people naked in the bathrooms or having sex in bedrooms and pubish that on the internet without their consent. This is illegal by itself. However, I suspect the penalties aren't particularly harsh.
This doesn't address the hate crime angle of things here. Any time you take naked pictures or sexual pictures of people without permission and post them on the internet to mock them, it's awful. If the video showed a naked guy with a small penis, or a girl fucking a horrendously ugly guy, that could be every bit as embarrassing for the small-dicked man or the woman in question as this was for the homosexual man. What makes the crime awful is that the man in question was obviously depressed and emotionally disturbed to begin with, and these actions resulted in so much embarrassment that they led to suicide. So really it's bullying an emotionally fragile person that's awful, not anything specific about the sexual orientations that makes it a "hate crime".