How to show controls on top of Camera object

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
joseggarza
Posts: 44
Joined: Thu Jul 24, 2014 8:55 pm

How to show controls on top of Camera object

Post by joseggarza » Wed Sep 27, 2023 6:50 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to show controls on top of Camera object

Post by jacque » Thu Sep 28, 2023 5:58 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

joseggarza
Posts: 44
Joined: Thu Jul 24, 2014 8:55 pm

Re: How to show controls on top of Camera object

Post by joseggarza » Fri Sep 29, 2023 3:20 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: How to show controls on top of Camera object

Post by jacque » Fri Sep 29, 2023 5:27 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “iOS Deployment”