[TIPS] Use Camera Capture Button in Power Apps Canvas App
Issue:
I created a Canvas App using a button to capture the picture.
In "On Select" property of the button, I used below script:
Collect(
colCameraImages,
{
Name: Text(Now(),"yyyy-mm-dd-hh-mm-ss.jpg"),
Value: Camera.Photo
}
);
But when I click the button, the camera captured a blank screen.
Later, I found only after I have clicked the screen once, then the button can be working.
Solution:
Step 1: Change script "Value: Camera.Photo" to "Value: Camera.Stream".
Collect(
colCameraImages,
{
Name: Text(Now(),"yyyy-mm-dd-hh-mm-ss.jpg"),
Value: Camera.Stream
}
);
Step 2: Change "Stream Rate" property of camera from 0 to 100.
Done.
Great info.
ReplyDelete