views:

1051

answers:

1

I am looking to stream what the camera sees onto a series of OpenGL ES textures. Getting them to display on the textures is not difficult, however, it isn't clear that the UIImagePickerController is able to grab images from the camera before the user takes a snapshot.

Tagged with 3gs because of the new video capture API.

+3  A: 

This is not supported in the iPhone SDK. While there are some hacks people have done (that involve scrapping the data off the texture the builtin in UI is displaying to the user) using them will probably result in your app getting rejected from the store.

The only supported way to get video data is to use the Apple UI and then ask for the resulting move after it is done recording. If you need realtime video data you should file a bug with Apple explaining why.

Louis Gerbarg
Does this answer take into account the new UIVideoEditorController class added recently? There seems to be a dearth of documentation on the subject.
sludge
Anything that was added as part of the 3.1 SDK is still under NDA, so if you have questions about any new functionality that was added you should ask in 3.1 section of Apple's developer forums <https://devforums.apple.com/community/iphone/iphone31beta>.Having said that, I am fairly confident my answer will remain correct for the forseeable future.
Louis Gerbarg