PDA

View Full Version : iPhone sdk direct access to camera




RossOliver
Mar 29, 2008, 09:10 AM
Hey,

Does anyone know if you can access the iPhone camera directly (not via the provided picker in the UIKit) to allow you to embed it in an application?

Thanks for you time,

-Ross



cybohemia
May 8, 2008, 01:26 AM
Ever figure out if the SDK allows you to access the camera?

zeidolon
Jun 12, 2008, 04:01 PM
Has anyone been able to access the iPhone camera to tap into the video? (no, I'm not looking for the picker to get a single frame capture)...

eventhough
Jul 11, 2008, 05:41 AM
Hello,

I have NO IDEA how Phanfare was able to access the camera directly through the SDK. Does anybody here know how they did it? I think it would help us out a lot.

Thanks.

hkk
Jul 12, 2008, 04:04 PM
I'd love to know too. Please post here if anybody finds out.

eventhough
Jul 12, 2008, 11:10 PM
This might disqualify you for the appstore, but here is how it's done:

http://www.onlamp.com/pub/a/onlamp/2008/03/25/the-apple-sdk-apis-apple-didnt-want-you-to-know-about.html

Basically you create your own header files to access the "private api" class.

good luck.

Please post back if you figure out how to do it.

thanks

hkk
Jul 13, 2008, 04:36 AM
Looks like CameraController in the PhotoLibrary framework is what would be needed.
See for example here (http://code.google.com/p/iflickr/source/browse/trunk/bkp/PhotoLibrary.h?r=10).

Hopefully it will find its way into the next version of the iPhone SDK.

khockey02
Jan 23, 2010, 06:52 PM
i dont know if this is what you mean but i was able to get the same video ability as on the normal unjailbroken 3gs on my 3g by copying the photolibrary.framework file folder from a 3gs and paste it on my 3g at /var/system/library/privateframeworks. im sure you can figure something out by knowing this