How Long should a child play video games?

I'm so confused about what to do with my nephew. No body in the house don't really pay attention to him. Or they just don't care what he does. But I'm concerned, he spends all day in his room on Xbox if he's not playing xbox he's on his iphone (which personally I don't think he should have one) but not my choice. The point is he never comes out unless it's to eat and then he's back on his phone or xbox and he's always talking to friends about dirty jokes and girls on xbox who live 500 miles away. I'm worried he's going to get hurt. And it's hurting him in general where he don't have any responsibilities, no chores. (He will be 12 in august) it will hurt him when he's 18 and out on his own. Clueless about this world we live in.

An hr a day at most then equal time reading or playing outside