Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

siliconKai

macrumors newbie
Original poster
Sep 4, 2008
14
0
Hey guys,
i am looking for some information on "How to get access to the camera of the iPhone". Does anyone know some good links?

i haven't found any information on this topic yet :-(

i would like to stream a video with the camera. i know that this might be very hard.

thanks for your help
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
You cannot get access to the camera at all using the SDK. You can only bring up the Apple defined take a picture UI.
 

Ron C

macrumors member
Jul 18, 2008
61
0
Chicago-area
Hey guys,
i am looking for some information on "How to get access to the camera of the iPhone". Does anyone know some good links?

i haven't found any information on this topic yet :-(

i would like to stream a video with the camera. i know that this might be very hard.

thanks for your help

You cannot get access to the camera at all using the SDK. You can only bring up the Apple defined take a picture UI.

This is through the UIImagePickerController - you can choose among 3 kinds of images:
  • an image in the Photo library
  • an image from the recently taken pictures
  • a new image taken by the camera

In all of these cases, the controller manages the selection process. You then get the image to use, but you can't get to the camera except through this method (... and still get it accepted by Apple for sale. There seem to be private APIs you could potentially use but I wouldn't expect Apple to approve of your use of these and allow the app into the store.)

Ron C
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.