Camera / Video

Hi All

could someone help me? i would like to use the camera viewer to view but overlay items over the display, i dont need to save or take a photo.

would also be happy to use the video option if this is easier but dont want

i have the sample of the camera but it just opens the camera media object and allows no editing od HUD items.

Thx

Darryl

Edit: Oops, roboward got a solution below, didn’t know they added this, nice :slight_smile:

http://forums.coronalabs.com/topic/42541-camera-feeds-as-textures/

Would you happen to mean something as simple as this? (Put cam feed on a rect, then your elements over it). 

[lua]

–put camera view on a rect

local camBacking = display.newRect( display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight )

camBacking.fill = {type = “camera”}

–put stuff over the camera view

local HUDElement = display.newRect( 150,150,50,50 )

local HUDElement2 = display.newRect( 200,250,100,50 )

[/lua]

this would be great Rob, thx for the help.

but i can’t seem to get it to work, does it work with ‘starter’ version of Corona sdk?

i have set the permissions to match the camera sample and all is displayed fine

got a feeling this may only work on IOS devices.

Hi @darryl_wainwright,

The live camera feed as a texture feature was implemented after the most recent public build, so at this time it’s only available to Pro subscribers. It will be rolled into the next public build of course, but I don’t have an ETA on that release date.

Best regards,

Brent

Hey Brent,

I’m very excited about the live camera feed but I’m wondering if it still has the same problem as the native camera pop-up: Can you decide which camera to launch first? It defaults to the back camera and I can’t find a way to set a preference.

Thank you,

Aidan Wolf

Edit: Oops, roboward got a solution below, didn’t know they added this, nice :slight_smile:

http://forums.coronalabs.com/topic/42541-camera-feeds-as-textures/

Would you happen to mean something as simple as this? (Put cam feed on a rect, then your elements over it). 

[lua]

–put camera view on a rect

local camBacking = display.newRect( display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight )

camBacking.fill = {type = “camera”}

–put stuff over the camera view

local HUDElement = display.newRect( 150,150,50,50 )

local HUDElement2 = display.newRect( 200,250,100,50 )

[/lua]

this would be great Rob, thx for the help.

but i can’t seem to get it to work, does it work with ‘starter’ version of Corona sdk?

i have set the permissions to match the camera sample and all is displayed fine

got a feeling this may only work on IOS devices.

Hi @darryl_wainwright,

The live camera feed as a texture feature was implemented after the most recent public build, so at this time it’s only available to Pro subscribers. It will be rolled into the next public build of course, but I don’t have an ETA on that release date.

Best regards,

Brent

Hey Brent,

I’m very excited about the live camera feed but I’m wondering if it still has the same problem as the native camera pop-up: Can you decide which camera to launch first? It defaults to the back camera and I can’t find a way to set a preference.

Thank you,

Aidan Wolf