The mother of a Darlington toddler who died after suffering fatal head injuries had recently installed a ‘spy camera’ in the boy’s bedroom, a court heard.