Video technology was twice used to good effect as Spain defeated France 2-0 in a friendly match in Saint-Denis.