0
我想記錄視頻隨着計時器。我有實現記錄視頻通過使用下面的編碼。並且還設置定時器限制。所有這些都工作正常但是我不想在開始後停止或暫停計時器。在錄製過程中是否有可能隱藏暫停按鈕或不停止計時器。是否有任何可能隱藏暫停按鈕從相機在Android
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);
}
}
}
}
您可以創建自己的自定義相機活動肯定錄製視頻 –
我已創建自定義的攝像頭,但無法正常錄製的版本 –
清楚,是真的要去需要一段時間才能使一個完美的視頻攝像機,你可以從github上找到它,U將得到一個完美的錄像機應用程序源 –