record and stop recording the video