val camera = cameraProvider.bindToLifecycle( this as LifecycleOwner, CameraSelector.DEFAULT_BACK_CAMERA, preview, videoCapture ) } 34 3FDPSEFSͱ7JEFP$BQUVSFΛ࡞ͯ͠-JGFDZDMFʹCJOE
Q Recorder.Builder() .setQualitySelector(QualitySelector.from(Quality.UHD)) w ΧϝϥσόΠεʹΑͬͯରԠ͍ͯ͠Δղ૾͕ҟͳΔ 2VBMJUZ4FMFDUPSHFU4VQQPSUFE2VBMJUJFT DBNFSBDBNFSB*OGP w ղ૾Λࢦఆ͠ͳ͍߹ɺ')%͔ΒॱʹରԠ͍ͯ͠Δղ૾Λ୳͠ઃఆ͞ΕΔ
when (event) { is VideoRecordEvent.Start -> {} is VideoRecordEvent.Pause -> {} is VideoRecordEvent.Resume -> {} is VideoRecordEvent.Finalize -> { event.outputResults.outputUri event.error } } }
53 val camera2Info = Camera2CameraInfo.from(cameraInfo) val config = camera2Info.getCameraCharacteristic( CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP ) val supportResolutionSizes = config?.getOutputSizes(ImageFormat.JPEG)