added code for capturing video during flight