I am using the below piece of code to open up the camera and start recording a video. But as I swipe from \'photo\' to \'video\' option while the camera is on, the app crash