cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
EdwardC
Level: Powered On

Timer for Camera

Hi all,

 

I thought it was straight forward when I thought of it but it didn't work and now I'm stuck as I haven't found a solution or similar problem as me on forms. 

 

Basically, I want my PowerApp to have a camera take a picture after say 5 seconds and loads it onto a image control:

Timer1 set to count up to 5 seconds + I have ClearCollect(Picture, Camera1.Photo) on OnTimerEnd

Camera1 is the name of the camera

Image1 set to First(Picture).Url on Image category

 

After it counts to 5 seconds, no picture was taken.

 

Any ideas how to achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Level 10

Re: Timer for Camera

Hi @EdwardC ,

 

Do you want the camera take photos per 5 seconds?

There is no need to use Timer control. The Stream property of camera can get the updated image based on the StreamRate automatically.

1. set StreamRate property of camera: 5000 ( milliseconds ) 

2. set OnStream property of camera: ClearCollect(Picture, Camera1.Stream) 

3. set image property of image control: First(Picture).Url

the image control will update the camera photo per 5 second.

 

Best regards,

Sik

View solution in original post

2 REPLIES 2
EdwardC
Level: Powered On

Re: Timer for Camera

Any ideas?

v-siky-msft
Level 10

Re: Timer for Camera

Hi @EdwardC ,

 

Do you want the camera take photos per 5 seconds?

There is no need to use Timer control. The Stream property of camera can get the updated image based on the StreamRate automatically.

1. set StreamRate property of camera: 5000 ( milliseconds ) 

2. set OnStream property of camera: ClearCollect(Picture, Camera1.Stream) 

3. set image property of image control: First(Picture).Url

the image control will update the camera photo per 5 second.

 

Best regards,

Sik

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,076)