+ Reply
Results 1 to 12 of 12

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Camera Controller?

is a discussion within the

3rd Party Apps Requests

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
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
...
  1. #1
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Camera 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?

  2. #2
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I got the answer. It was thanks to the optimization option.
    After I turned off the option, now things working fine.

  3. #3
    Retired Moderator Dash-2's Avatar
    Join Date
    Jul 2007
    Location
    Oregon
    Posts
    2,080
    Thanks
    79
    Thanked 222 Times in 184 Posts

    So what is your program gonna do?
    =D

  4. #4
    What's Jailbreak?
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi there!

    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.

  5. #5
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Posts
    125
    Thanks
    6
    Thanked 17 Times in 17 Posts

    thats cause camara is actually spelled camera.

  6. #6
    What's Jailbreak?
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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...

  7. #7
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  8. #8
    What's Jailbreak?
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 ];

    //Set size...
    //[ cv setBounds:CGRectMake(0.0, 0.0 , 300 , 250) ];

    [[window contentView] addSubview:cv];
    [window orderFront:nil];
    [window makeKey:nil];




    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.

  9. #9
    the kanye west of programming drunknbass's Avatar
    Join Date
    Jul 2007
    Posts
    392
    Thanks
    0
    Thanked 51 Times in 41 Posts

    i will post an easy to use code sample for camera view tonight on www.monsterandfriends.com

  10. #10
    What's Jailbreak?
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    // Init the CamaraView elements
    not helping your cause...

  11. #11
    What's Jailbreak?
    Join Date
    Nov 2007
    Posts
    23
    Thanks
    4
    Thanked 2 Times in 2 Posts

    please implement 2 important features: self timer and autoshoot after a fixed interval.Would make the camera much more useful.

  12. #12
    Green Apple
    Join Date
    Nov 2007
    Location
    Glendale CA
    Posts
    62
    Thanks
    30
    Thanked 1 Time in 1 Post
    anyone make any breakthroughs?

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts