Camera Feed Fill

I’ve seen a few posts about this on the forum with no answer, so I wanted to chime in again – I just got the absolute latest build, and the camera feed is still not actually real time like the example video.

The relevant code:

local shape = display.newRect( 0, 0, 320, 480 )

shape.anchorX = 0

shape.anchorY = 0

shape.fill = { type=“camera” }

I noticed if I touch the screen it refreshes. If i constantly slide my finger back and forth, it looks like realtime. Does it just need something to trigger an update?

I know it’s still fairly new and probably still considered “beta”, but I’d really like to try to use it for a business-related app I’m working on. I’m on an iPhone 5, ios7.

Thanks,
Dave

I had that exact problem and solved it with:

display.setDrawMode( "forceRender" )

Hope that helps!

I had that exact problem and solved it with:

display.setDrawMode( "forceRender" )

Hope that helps!

Awesome, thanks for this. Worked like a charm for us :slight_smile:

Side note: Anyone knows if front camera support is coming? We’d really need the option to choose between both the cameras for a brand new app we are working on.

Front camera is now supported. See more info here: http://forums.coronalabs.com/topic/47792-corona-sdk-switch-between-front-and-back-camera/?hl=%2Bcamera+%2Bfill

Hey Corona, do you plan to support the camera fill for Android soon ?

Awesome, thanks for this. Worked like a charm for us :slight_smile:

Side note: Anyone knows if front camera support is coming? We’d really need the option to choose between both the cameras for a brand new app we are working on.

Front camera is now supported. See more info here: http://forums.coronalabs.com/topic/47792-corona-sdk-switch-between-front-and-back-camera/?hl=%2Bcamera+%2Bfill

Hey Corona, do you plan to support the camera fill for Android soon ?