views:

1032

answers:

3

Can we make able the iphone simulator to capture an image via webcam, I've written a program to take image from iphone camera. Can i test this with the iphone simulator??? Pls help

+4  A: 

You cannot take image via Mac's webcam from iPhone Simulator. For camera, you need to test it on a device.

Chintan Patel
+1  A: 

Imagine if this would be possible on the Simulator, your Mac camera resoultion would be very different from the device one and your mac performances too. This could lead to bad surprises when moving and testing the application on the device.

scriba
the reason that this doubt came to me is that i've seen such features in the simulators for android and other such platforms. Anyway, thanks for your replies. Its great that apple didn't included such an option, which would have led the developers to make a mess of it.
Nithin
There'd be nothing to stop the webcam image being scaled to exactly the resolution of the iphone camera. I think it should work... partly coz I'm trying to write an app and I haven't had my phone delivered yet!
Jesse Pepper
A: 

(Sorry for my english)

In android world, the phone emulator don't have a live camera preview so the solution is create a "Webcam Server" running on emulator host (PC/Mac). This program is a socket server to capture frames from the built-in Webcam and transmit them using a socket.

Then in the phone code (android emulator) you can read the frame through socket and then shows and simulate a real phone camera.

Is that posible in iPhone simulator?

msdark