Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Camera Controller?is a discussion within the
3rd Party Apps Requestsforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
I'm trying to develop a program uses iPhone's Camera. I tried to follow the source code of "Squidge" but whenever I put in Camera related codes, my application launched via...
09-29-2007, 06:23 AM #1Camera Controller?
I'm trying to develop a program uses iPhone's Camera.
I tried to follow the source code of "Squidge" but whenever I put in Camera related codes, my application launched via ssh on iPhone returns "bus error".
At this stage I just need to control the camera feature.
(Pirate App's camera snap looks good to me)
Could you give me some guidance to use iPhone's camera in correct way?
10-01-2007, 11:55 PM #2
I got the answer. It was thanks to the optimization option.
After I turned off the option, now things working fine.
10-02-2007, 12:26 AM #3
So what is your program gonna do?
11-26-2007, 06:39 AM #4
Do you have a source example of how to control the camara? I've been trying for a while and it does not work. I have tried a couple of things:
* Instantiate CamaraControler and to render the UIView *_previewView; into a window
* Instantiate CamaraView and put on a window to see it
I am afraid I am a little newbie in this iphone/mac development thing, so a piece of code will really help.
Thanks in advance.
11-26-2007, 04:37 PM #5
thats cause camara is actually spelled camera.
11-26-2007, 06:21 PM #6
Sorry for that! Of course I wrote "camera" on my program, so that was not the problem.
Well, I finally got CameraView working, but it has been a long night.... and it has a strange behavior. Anyway I really think I am doing something wrong, so if anyone can put an example of how to use the camara, it will be great.
If not, I will put mine when finish...
12-03-2007, 11:53 PM #7
Any luck Kalman? I'm too trying to get the camera displaying. I've been following squidge's example, but so far no luck on my end.
12-05-2007, 07:09 AM #8
Yes... some luck, but not completely successful!
Can I have a copy of the squidge code? please?
What I have now in the applicationDidFinishLaunching function is
window = [[UIWindow alloc] initWithContentRect:[UIHardware fullScreenApplicationContentRect]];
[window setContentView:[[[UIView alloc] initWithFrame:[window bounds]] autorelease]];
[[window contentView] setBackgroundColorCGColorRef)[(id)GSColorCreateWithDeviceWhite(0.0, 1.0) autorelease]];
// Init the view to draw elements inside
view = [[[AccView alloc] initWithFrame:CGRectMake(0.0, 100, 100 , 100)] autorelease];
// Init the CamaraView elements
//cv = [[[CameraView alloc] initWithFrame:CGRectMake(0.0, 0.0 , 100 , 100) ] autorealise];
cv = [[CameraView alloc] init ];
//[ cv setBounds:CGRectMake(0.0, 0.0 , 300 , 250) ];
[[window contentView] addSubview:cv];
flag_start_preview = 0;
where AccView is a empty View with nothing.... I do not understand why I have to put this "view" under the camera... but otherwise it does not work.
12-05-2007, 01:04 PM #9
12-05-2007, 10:01 PM #10// Init the CamaraView elements
12-06-2007, 08:33 AM #11
please implement 2 important features: self timer and autoshoot after a fixed interval.Would make the camera much more useful.
12-10-2007, 11:54 PM #12
anyone make any breakthroughs?