cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShadowTech
Post Prodigy
Post Prodigy

Can't disable camera control on app

Hello,

 

The camera control is visible based on a button click. That works fine. When I hide the camera it disables it. unfortunately, when the app starts, the camera control takes control of the computer camera while its still not visible. I have tried to set values to false at startup but nothing works.

 

I have two camera controls, one on each screen acting the same way. Navigating between screens the camera control takes control of the computer camera while still being visible.

 

Camera control visible true/false

 

 

UpdateContext({CameraOption:!CameraOption})

 

 

I'm also using this to disable the camera. The camera control still want to activate while not visible at start of app.

If(CameraOption, DisplayMode.Edit, DisplayMode.Disabled)

 

Thanks in advance.

2 REPLIES 2
Ramole
Super User
Super User

Hello @ShadowTech 

 

Check this post https://powerusers.microsoft.com/t5/Building-Power-Apps/Disable-phone-s-camera/td-p/49500 

Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

@Ramole I'm doing that exact same thing. Not sure if this is a bug or not. The variable works fine when executing it by clicking the button but for some reason the camera is activated when opening the app even though the camera control is not visible.

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.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

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 (2,296)