set a control capture intent at recording

This commit is contained in:
tibbi 2018-06-07 15:41:42 +02:00
parent 31d7ee2663
commit 57698fb817
1 changed files with 1 additions and 0 deletions

View File

@ -714,6 +714,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
val texture = mTextureView.surfaceTexture val texture = mTextureView.surfaceTexture
texture.setDefaultBufferSize(mPreviewSize!!.width, mPreviewSize!!.height) texture.setDefaultBufferSize(mPreviewSize!!.width, mPreviewSize!!.height)
mPreviewRequestBuilder = mCameraDevice!!.createCaptureRequest(CameraDevice.TEMPLATE_RECORD) mPreviewRequestBuilder = mCameraDevice!!.createCaptureRequest(CameraDevice.TEMPLATE_RECORD)
mPreviewRequestBuilder!!.set(CaptureRequest.CONTROL_CAPTURE_INTENT, CaptureRequest.CONTROL_CAPTURE_INTENT_VIDEO_RECORD)
val surfaces = ArrayList<Surface>() val surfaces = ArrayList<Surface>()
val previewSurface = Surface(texture) val previewSurface = Surface(texture)