I want to record the video along with timer.I have implementing to record the video by using the below coding.And also set the timer limit.All of them working fine.But i don't want to stop or pause the timer after it starts.Is there any possibilities to hide the pause button or not to stop the timer during recording.
public void getPhotoFromCamera() {
if (!marshMallowPermission.checkPermissionForCamera()&&!marshMallowPermission.checkPermissionForRecord()) {
marshMallowPermission.requestPermissionForCamera();
marshMallowPermission. requestPermissionForRecord();
} else {
if (!marshMallowPermission.checkPermissionForExternalStorage()) {
marshMallowPermission.requestPermissionForExternalStorage();
} else {
Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
takeVideoIntent.putExtra("android.intent.extras.LENS_FACING_FRONT", 1);
takeVideoIntent.putExtra("android.intent.extras.CAMERA_FACING", android.hardware.Camera.CameraInfo.CAMERA_FACING_FRONT);
takeVideoIntent.putExtra("android.intent.extra.USE_FRONT_CAMERA", true);
takeVideoIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 60);
/* imgag1.setVisibility(View.VISIBLE);
imgag1.startAnimation(animFadein);*/
if (takeVideoIntent.resolveActivity(getPackageManager()) != null) {
startActivityForResult(takeVideoIntent, REQUEST_VIDEO_CAPTURE);
}
}
}
}