A toddler's mother installed a spy camera above his cot because she was "concerned" about her partner months before he allegedly murdered her child by "shaking or throwing" him.