A federal judge based in New York has ruled that YouTube, one of the world’s most popular video-sharing sites, was not in violation of the law despite the presence of material from producer Viacom. According to the judge, the burden falls on the company that owns the content to keep watch for violations, and it was impractical to ask YouTube to completely monitor everything that appeared on the site.