×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Nokia s6700 Camera problem

    Hello


    This is my first post to this forum, I had get much valuable information from here.


    My problem is that using Camera with Nokia 6700 Slide, Type RM-576, firmware 061.004 (and C5-00), I use Developer Platform S60 3rd Edition, Feature Pack 2. Then I start Player with start - method application crash without error.

    I tried to start player in own thread but it didn't work.

    Customer said that application worked quite long time, can firmware update cause problems? Is camera landscape orientation problem (must I set it?). I tried to change phone camera options but it didnt solve the problem. There is enough memory both in camera (39Mb) and in memory card (1.5Gb).

    Application works then I comment line:

    player.start();

    but then my Camera canvas is blank (white). Application has worked OK with other Nokia models with their own SDK's. By the way, is there matter which one line is first:

    player.start();

    or

    videoControl.setVisible(true);

    I had seen both ways.

    --

    Code:


    import javax.microedition.media.*;
    import javax.microedition.media.control.*;
    import javax.microedition.amms.control.camera.FlashControl;

    ...

    private Player player = null;
    private VideoControl videoControl = null;

    ...


    void initCamera()
    {
    try
    {
    player = Manager.createPlayer("capture://video");
    player.realize();

    // player.prefetch();


    // Grab the video control and set it to the current display.
    videoControl = (VideoControl)(player.getControl("VideoControl"));

    if (videoControl == null)
    {
    discardPlayer();
    Debug.out.println("Unsupported: Can't get video control");
    }
    else
    {
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, iRepainter);

    int x = 8;

    // TITLE_LINE_Y = 21, so y will be 30
    int y = TITLE_LINE_Y + 9;
    videoControl.setDisplayLocation(x, y);
    }
    }

    catch (IOException ioe)
    {
    discardPlayer();
    Debug.out.println("IOException: "+ioe.getMessage());
    }
    catch (MediaException me)
    {
    discardPlayer();
    Debug.out.println("MediaException: "+me.getMessage());
    }
    catch (SecurityException se)
    {
    discardPlayer();
    Debug.out.println("SecurityException: "+se.getMessage());
    }
    }

    ...

    if ((player != null) && !iActive) {
    Debug.out.println("Start");
    try
    {
    // This crash APP (Nokia 6700)!!!!!! - WHY?
    player.start();

    videoControl.setVisible(true);

    // player starting on own thread didnt solve problem
    // t.run();

    }

    catch (MediaException me)
    {
    Debug.out.println("MediaException: "+me.getMessage());
    }

    catch (SecurityException se) {
    Debug.out.println("SecurityException: "+se.getMessage());
    }
    }

    ...

    /*
    Thread t = new Thread(new Runnable() {

    public void run() {
    try {
    player.start();
    } catch (MediaException ex) {
    ex.printStackTrace();
    }
    }
    });
    */
    Last edited by makelj; 2011-02-01 at 06:40.

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Nokia s6700 Camera problem

    Hi and welcome to the Forum Nokia Discussion Boards,

    Note that the video control's visibility must be set as true first then the player should be started, This is the article on the wiki, for your reference.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Thanks

    I Changed code, but it still crash app and again if I comment player.start(); It works with white screen (no camera preview). Maybe this is some Phone's Camera setting issue, cause customer said that application works quite long time.

    New code:
    ...

    if ((player != null) && !iActive) {
    Debug.out.println("Start");
    try
    {
    videoControl.setVisible(true);

    // This crash APP (Nokia 6700)!!!!!! - WHY?
    player.start();

    // player starting on own thread didnt solve problem
    // t.run();

    }

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Hi

    I actually tried Middlet that was behind wiki link and it crashed too. My developping tool is Netbeans 6.8.

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Nokia s6700 Camera problem

    Quote Originally Posted by makelj View Post
    Hi

    I actually tried Middlet that was behind wiki link and it crashed too. My developping tool is Netbeans 6.8.
    This is the known issue on the developer plateform which you are working with, please refer this link to get rid of this issue.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  6. #6
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Thanks!

    >> This issue has been fixed in the latest firmware versions for the affected devices.

    I check phone firmware version and that is 061.004 (maybe its old), from there I can download or check wich is latest firmware to 6700s?

    EDIT:

    I checked latest firmware from: http://europe.nokia.com/support/down...oftware-update

    and firmware 061.004 is latest, I test application with my 6730c phone (compiled with same SDK) and it works fine.
    Last edited by makelj; 2011-02-01 at 12:34.

  7. #7
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Hello

    So I had latest firmware (061.004) on my phone (6700s) and application still crash then it use camera (that middlet behind wiki link crashed too), my application work OK with my Nokia 6730c phone. It seems that there must be something wrong with my camera settings in my 6700s phone?

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Nokia s6700 Camera problem

    Quote Originally Posted by makelj View Post
    Hello

    So I had latest firmware (061.004) on my phone (6700s) and application still crash then it use camera (that middlet behind wiki link crashed too), my application work OK with my Nokia 6730c phone. It seems that there must be something wrong with my camera settings in my 6700s phone?
    There is one demo MobileMediaAPI inside the WTK apps folder, get that installed on the same device and check of this too get crashed,let us know the results. I wonder if any camera setting can get rid you of the issue.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Hello

    So I tested MobileMediaAPI.jar (C:\WTK2.5.2\apps\MobileMediaAPI\bin), and both apps (Video Capture - Form and Video Capture Canvas) crashed right away after start, Animated GIF apps worked fine.

  10. #10
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Nokia s6700 Camera problem

    Quote Originally Posted by makelj View Post
    Hello

    So I tested MobileMediaAPI.jar (C:\WTK2.5.2\apps\MobileMediaAPI\bin), and both apps (Video Capture - Form and Video Capture Canvas) crashed right away after start, Animated GIF apps worked fine.
    I suspect that this can be the device issue, could you test your app on another same device to make this sure?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  11. #11
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Unfortunately I have only this one 6700s phone, without application camera working OK.

  12. #12
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    Hello

    Nokia PC Suite found new software update, I installed that (062.001) but unfortunately it didnt solve problem, MobileMediaAPI.jar crashed (and my app too), maybe my phone (6700s) is really broken.

    Thanks for all helping!

  13. #13
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Nokia s6700 Camera problem

    Quote Originally Posted by makelj View Post
    Hello

    Nokia PC Suite found new software update, I installed that (062.001) but unfortunately it didnt solve problem, MobileMediaAPI.jar crashed (and my app too), maybe my phone (6700s) is really broken.

    Thanks for all helping!
    If this can test and in case found reproducible then any of the Forum Nokia Expert should come forward and declare this as the device known issue.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  14. #14
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: Nokia s6700 Camera problem

    OK,

    One thing still confuse me, why apps with old code worked ok with some devices (ex. E90, Developer Platform S60 3rd Edition, Feature Pack 1).

    BEFORE:

    player.start();
    videoControl.setVisible(true);

    NOW:

    videoControl.setVisible(true);
    player.start();

    With this SDK it left cameracanvas blank (white), for example with 6730c and it worked fine after I set videoControl.setVisible(true) before player.start method. Is that issue result of used Developer Platform or Device firmware or what?

  15. #15
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Nokia s6700 Camera problem

    Quote Originally Posted by makelj View Post
    With this SDK it left cameracanvas blank (white), for example with 6730c and it worked fine after I set videoControl.setVisible(true) before player.start method. Is that issue result of used Developer Platform or Device firmware or what?
    Yeah any one out of these can be the reason..I will recommend that you set the video control visible true first then start the player.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Regard Nokia N82 Camera Problem
    By rajubd in forum General Development Questions
    Replies: 1
    Last Post: 2010-04-30, 08:52
  2. Nokia N82 Camera problem
    By inkasa in forum General Development Questions
    Replies: 4
    Last Post: 2009-10-28, 09:00
  3. Camera problem on Nokia N73
    By william2008 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-06-25, 09:12
  4. Nokia 3220 Camera problem
    By chrisdevey in forum General Development Questions
    Replies: 1
    Last Post: 2006-01-02, 04:25
  5. Nokia 3220 camera problem
    By selinafuck in forum General Development Questions
    Replies: 0
    Last Post: 2005-07-31, 17:25

Posting Permissions

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