Added quality parameter to captureVideo method.