Stop and start camera capture intelligently.