implemented the video recording the way taking a picture was (threaded).