SACRAMENTO, Calif. (AP) — An attorney representing California prison inmates says a federal judge has decided that videos showing prison guards dousing mentally ill prisoners with pepper spray can be shown in open court.

Attorney Michael Bien told The Associated Press that U.S. District Court Judge Lawrence Karlton announced his decision Wednesday during a telephone conference call with attorneys representing inmates and the state.

The administration of Gov. Jerry Brown had sought a different outcome. If the videos were played at all, the administration wanted the judge to view them privately.

Corrections department spokesman Jeffrey Callison says the state did not want to comment on the matter because the court had not issued a decision publicly. But he said the state would want the videos shown in their entirety to provide the proper context.