RJ Sangosti/The Denver Post via AP, Pool
In this March 12, 2013, file photo, James Holmes, left, and defense attorney Tamara Brady appear in district court in Centennial, Colo., for his arraignment. Prosecutors are methodically building a case that Holmes knew right from wrong when he planned and carried out the deadly Colorado theater shooting, hoping to convince jurors that he should be convicted and executed and not sent to a mental hospital.

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.