An 19-year-old man caught on video watching a toddler sleep during an alleged burglary told police he was involved two other Houston break-ins, including one in which he stole a gun, prosecutors said Monday.

A surveillance video showing a burglar staring at a sleeping toddler inside a west Harris County home on April 5 went viral after being released by authorities trying to catch him.

Prosecutor David Bernard told state District Judge Marc Carter that Christopher Gomez confessed to police he was the burglar on the video and it was one of three burglaries in the same neighborhood, one of which netted a gun.

Gomez, who appeared in court Monday in an orange jail uniform, has a past arrest for breaking into a car and three arrests for possession of marijuana, Bernard said.

The teen was seen on the homeowner's nighttime security video walking through the home in the 18200 block of Flint Hill while the family was sleeping, Harris County Sheriff's deputies said. The homeowner's laptop computer and briefcase later were found in a neighbor's yard.

Gomez was arrested Thursday on unrelated charges from Harris County Precinct 5 and his bail was set at $750,000 after a magistrate judge heard about the three burglaries.

Ralph Gonzalez, a lawyer for Gomez, said in court that he was not sure the man on the video was Gomez and even if it was, he did not hurt anyone.

"Without that video, this would just be three plain-jane burglary of a habitations," Gonzalez told the judge.

Carter lowered the bail to $90,000, but said if Gomez gets out of the Harris County Jail, he must stay within 1,000 feet of his home and be fitted with a GPS ankle monitor.

As bailiffs escorted him from the courtroom, the 5-foot-5-inch Gomez mouthed "Hi mom," to family members in the gallery. They declined comment after the brief hearing.