×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Angry catpure a image : really frustrated

    I'm using Series 40 6th Edition SDK and try to capture a image, here is how I do it:
    (1) check if the platform support image cature
    System.getProperty("supports.video.capture"); // return true
    (2) check the supported content types
    String[] contentTypes = Manager.getSupportedContentTypes("capture"); // it contains encoding=png
    (3) create the video control
    player = Manager.createPlayer("capture://image");
    player.realize();
    player.prefetch();

    videoControl = (VideoControl)player.getControl("VideoControl");
    (4) get the snapshot
    byte[] capturedImageData = videoControl.getSnapshot("encoding=png");

    But the emulator says : Invalid locator : capture://video?encoding=png , it's so weird that the capture protocol becomes video !!

    then I tried this:
    byte[] capturedImageData = videoControl.getSnapshot(null);

    Now the error become: RecordControl error
    I've read many threads in the forum, but didn't find a solution
    I'm so frustrated by Nokia S40, anybody can help ? thanks in advance!!

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: catpure a image : really frustrated

    Hi liuxinlx! Welcome to Nokia Developer Discussion Boards!!

    Please go through the Series 40 6th Edition SDK Release Notes to check any Known Issues for VideoControl. Also it would be good if you can try in the real device.

    In the mean while I will also check on this.

    Regards
    Gopal
    Twitter : @balagopalks
    Linkedin : @balagopalks

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Re: catpure a image : really frustrated

    Thanks balagopalks for your reponse, I found following in the realse note:"Video recording functionality is not supported in the SDK. Workaround: use the phone for Video recording testing. "

    So seems I have to use the real phone to test it, is there any better way ?

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: catpure a image : really frustrated

    Testing in the real device would always be the best option.

    Regards
    Gopal
    Twitter : @balagopalks
    Linkedin : @balagopalks

  5. #5
    Nokia Developer Expert
    Join Date
    Mar 2008
    Posts
    9

    Re: catpure a image : really frustrated

    Hi ,

    Those error are compile-time of Run-time ??

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: catpure a image : really frustrated

    Quote Originally Posted by liuxinlx View Post
    Thanks balagopalks for your reponse, I found following in the realse note:"Video recording functionality is not supported in the SDK. Workaround: use the phone for Video recording testing. "

    So seems I have to use the real phone to test it, is there any better way ?
    Using getsnapshot() is having a known issue in the current version of the emulator. It will be fixed in the next version of Emulator.

    Regards
    Gopal
    Twitter : @balagopalks
    Linkedin : @balagopalks

Similar Threads

  1. --- ???save image problem??? ---
    By ferenn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2007-10-01, 14:33
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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