Video recording without showing preview screen

Hi team I want to implement the video recording and user can re-record the video for maximum of 2 times on APP but when APP takes the user to
device camera then user can take unlimited retakes so I am trying to hide the retake video option or stop showing preview of video or
instantly come back to app when the video timer is stopped using media capture cordova plugin.
basically any option so that i can hide “cancel”(cross) button after recording or after recording directly upload the video without showing preview of video.