The surreptitious videos taken inside the U.S. Supreme Court that popped up on YouTube in recent days were an embarrassment to the court—but not a violation of any law.

The court itself prohibits cameras and all electronic devices inside the courtroom, and its screening of people entering the courtroom would likely detect most conventional cameras or phones with cameras.