set a control capture intent at recording
This commit is contained in:
parent
31d7ee2663
commit
57698fb817
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue