Cal. Penal Code § 1347
(b) Notwithstanding any other law, the court in a criminal proceeding, upon written notice by the prosecutor made at least three days prior to the date of the preliminary hearing or trial date on which the testimony of the minor is scheduled, or during the course of the proceeding on the court’s own motion, may order that the testimony of a minor 13 years of age or younger at the time of the motion be taken by contemporaneous examination and cross-examination in another place and out of the presence of the judge, jury, defendant or defendants, and attorneys, and communicated to the courtroom by means of closed-circuit television, if the court makes all of the following findings:
(1) The minor’s testimony will involve a recitation of the facts of any of the following:
(2) The impact on the minor of one or more of the factors enumerated in subparagraphs (A) to (E), inclusive, is shown by clear and convincing evidence to be so substantial as to make the minor unavailable as a witness unless closed-circuit testimony is used.
(E) The defendant or his or her counsel behaved during the hearing or trial in a way that caused the minor to be unable to continue his or her testimony.
In making the determination required by this section, the court shall consider the age of the minor, the relationship between the minor and the defendant or defendants, any handicap or disability of the minor, and the nature of the acts charged. The minor’s refusal to testify shall not alone constitute sufficient evidence that the special procedure described in this section is necessary to obtain the minor’s testimony.
(d)
(e) When the court orders the testimony of a minor to be taken in another place outside of the courtroom, the court shall do all of the following: