cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EdwardC
Helper III
Helper III

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
Community Support
Community Support

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
Helper III
Helper III

Any ideas?

v-siky-msft
Community Support
Community Support

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,698)