web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ZzOZR2L/o64LPIqHr2jcd/
Power Apps - Building Power Apps
Answered

Camera control not capturing image in browser or desktop app

Like (0) ShareShare
ReportReport
Posted on 10 Nov 2021 05:39:39 by 50

Hi, i've looked around for posts on this for a while now and I can see alot of posts from people having issue with camera control in browser, the black screen and notification that "your camera isnt properly set up or already in use".

 

However I have a different issue here.

The camera control is working and its showing an image when I open in it in either a browser or the windows store app.

But It just wont capture the image, I click around all over the place and it just doesnt take the picture.

The way it takes the picture is with cameracontrols OnSelect property.

I also added a button that runs the same code as the OnSelect property, it navigates to the page like its supposed to but does not capture the image.

 

This all works on mobile devices, so I have no idea why this isnt working on laptop.

The OnSelect Property of the camera control is this

ClearCollect(
 PICTEST,
 Camera1.Photo
);
Set(
 varBild,
 First(PICTEST).Url
);
Navigate(TagenBild)

 

It captures the image and on the next screen you can decide if you like to save the image or not.

I run on version 3.18054.42

 

Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    151,813 Most Valuable Professional on 10 Nov 2021 at 09:14:56
    Re: Camera control not capturing image in browser or desktop app

    Hi @drwaz ,

    Set the Camera StreamRate to 100 and put this on the Button

    ClearCollect(
     PICTEST,
     Camera1.Stream
    )

    The issue you have is the camera photo does not exist until it it taken by the camera control with its own OnSelect.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • drwaz Profile Picture
    50 on 10 Nov 2021 at 09:47:57
    Re: Camera control not capturing image in browser or desktop app

    Thanks, i must have left my brain in bed this morning. Of course thats how it is.

    Cheers for waking my mind up!

     

  • WoLe98 Profile Picture
    16 on 25 Nov 2021 at 15:30:00
    Re: Camera control not capturing image in browser or desktop app

    Hi @WarrenBelz ,

     

    I followed the same procedure as you explained, however it doesn't seem to work in my browser. Before it did work and that is why I know find it weird that is does not work anymore, do you have a clue by looking at the following code/properties?

     

    CameraControl with properties:

    OnSelect: False

    Streamrate: 100

     

    Button (for taking picture) with properties:

    ClearCollect(_varTakenPhoto, CameraTest.Stream)

     

    Image with properties:

    First(_varTakenPhoto).Url

     

    Cheers,

    Wouter

  • WarrenBelz Profile Picture
    151,813 Most Valuable Professional on 25 Nov 2021 at 20:34:00
    Re: Camera control not capturing image in browser or desktop app

    @WoLe98 ,

    Nothing wrong with your code - just tested it here with your exact names and it worked perfectly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard
Loading complete