Closed gbinnetov closed 8 months ago
private void cameraView_CamerasLoaded(object sender, EventArgs e) {
if (cameraView.Cameras.Count > 0) { cameraView.BarCodeDetectionEnabled = true; cameraView.Camera = cameraView.Cameras.First(); MainThread.BeginInvokeOnMainThread(async () => { await cameraView.StopCameraAsync(); await cameraView.StartCameraAsync(); }); }
}
======================
cameraView.Cameras.Count = 0
Hi, It works fine. Maybe it is an access camera permission error on your application.
private void cameraView_CamerasLoaded(object sender, EventArgs e) {
}
======================
cameraView.Cameras.Count = 0