Page 1 of 1

How to show controls on top of Camera object

Posted: Wed Sep 27, 2023 6:50 pm
by joseggarza
Hi,
I need some of your wisdom here.

I am playing with the camera using IOS, here is the code:

Code: Select all

cameraControlCreate "myCamera"
cameraControlSet "myCamera", "rect", the screenRect
cameraControlSet "myCamera", "videoDevice", "default"
cameraControlSet "myCamera", "focusMode", "continuous"
cameraControlSet "myCamera", "exposureMode", "continuous"
cameraControlSet "myCamera", "whitebalanceMode", "continuous"
cameraControlSet "myCamera", "videoDevice", "default"
cameraControlSet "myCamera", "flashMode", "auto"
That Creates the Camera using the whole screen, just the way I need it.

How can I insert controls on top of the camera? I just can't find a way to modify the layer of the camera.
I want to put a group of controls on top of the camera. How can this be done? any ideas?

Thanks
JG

Re: How to show controls on top of Camera object

Posted: Thu Sep 28, 2023 5:58 pm
by jacque
I think all the native controls are in their own layer at the top and you can't put anything on top of them. A workaround would be to make the camera a bit shorter so controls can be placed on the card underneath it.

Re: How to show controls on top of Camera object

Posted: Fri Sep 29, 2023 3:20 pm
by joseggarza
Hello Jacque,

I hope you're doing well, and thank you for your response. Yes, that is precisely what I did. However, the camera display maintains its aspect ratio, and when I slightly reduce its size to accommodate the buttons at the bottom, the camera display shrinks its sides to maintain the ratio. As a result, I can see two white strips along the sides of the camera.

I wish I could sacrifice the aspect ratio to make it cover the entire width of the screen.

Regards,
Jose Garza

Re: How to show controls on top of Camera object

Posted: Fri Sep 29, 2023 5:27 pm
by jacque
You could try setting the backcolor of the card to something less obtrusive than white. Normally this will color the border edges, though I'm not sure if that applies to the camera display. It's worth a try though.