Fix video recording ,Thanks to RonGokhale