handle video capture