CENTENNIAL, Colo. — Colorado theater gunman James Holmes has said he wishes a psychiatrist who treated him before the shootings had locked him up so the attack wouldn't have happened.

In a videotape played Tuesday for jurors, Holmes said during a court-ordered sanity evaluation that he had repeatedly asked Dr. Lynn Fenton if she was going to have police detain him, which she could do under Colorado law.

Fenton did not have Holmes detained. Prosecutors have said he told Fenton he was having homicidal thoughts.

Fenton didn't immediately return a call seeking comment. She is expected to testify later in the trial.

The videotape shown to jurors was from an evaluation conducted by another psychiatrist.

Twelve people died and 70 others were injured in the 2012 shootings. Holmes pleaded not guilty by reason of insanity.

Prosecutors are trying to show he was sane at the time of the attack. They are seeking the death penalty.