cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

Re: Timer for Camera

Any ideas?

Highlighted
Community Support
Community Support

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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