Showing results for 
Search instead for 
Did you mean: 
Resolver II
Resolver II

Camera Switch Options

Hi Folks

I was wondering if there's a way to verify if a camera is acutally available and if not to loop to to next available cam via a toogle button.

For example on my Huawei Mate 20 Pro i get 6! cams (id: 0-5) while setting the number of cams to a variable like so (that is onSelect; Cam is the Id of the cam, which I set to 0 at first): 



    Cam = varAnzahlCameras,
    UpdateContext({Cam: 0}),
    UpdateContext({Cam: Cam + 1})



The issue is that in my case the cam 5 is not available, resulting in a black screen with the information that the cam is unavailable or already in use. Exactly that I'd like to avoid and skip said cam 5 to start again from cam 0. 


Is there a way to test this?



Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,460)