File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ protected virtual async partial Task PlatformStartCameraPreview(CancellationToke
151151
152152 await mediaCapture . InitializeCameraForCameraView ( cameraView . SelectedCamera . DeviceId , token ) ;
153153
154- frameSource = mediaCapture . FrameSources . FirstOrDefault ( source => source . Value . Info . MediaStreamType == MediaStreamType . VideoRecord ) . Value ;
154+ frameSource = mediaCapture . FrameSources . FirstOrDefault ( source => source . Value . Info . MediaStreamType == MediaStreamType . VideoRecord && source . Value . Info . SourceKind == MediaFrameSourceKind . Color ) . Value ;
155155
156156 if ( frameSource is not null )
157157 {
@@ -204,4 +204,4 @@ protected async Task PlatformUpdateResolution(Size resolution, CancellationToken
204204 await mediaCapture . VideoDeviceController . SetMediaStreamPropertiesAsync ( MediaStreamType . Photo , filteredPropertiesList . First ( ) ) . AsTask ( token ) ;
205205 }
206206 }
207- }
207+ }
You can’t perform that action at this time.
0 commit comments