×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C6-00

    Hello guys,

    I am facing a strange issue of screen video rotates by 90 degree counter clockwise while capturing photo on nokia C-5-03 and C6-00. Both supports screen orientation.

    I have tried many sample provided on nokia forum and others app such as FaceWarp. They all displays screen with rotated video.
    I also tried many combination but no luck.

    Please help if anyone has solution/suggestion on this issue.

    Thank you in Advance.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello navratan.soni@gmail.com,

    and welcome to Nokia Developer Discussion Boards!

    Just to check that I understood correctly: the issue happens only after you have taken the picture, right? I.e. if your device is on portrait mode, then after you have taken the picture it will be shown 90 degrees counter clockwise as compared to the portrait mode?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello r2j7,

    Thanks for your response.

    This issue coming before capturing image i.e. when video control screen displays, every objects view on the screen are roated by 90' counter clockwise. On capturing also it shows same way.

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    I have to check this issue with real devices as it does not seem to be right. However:

    in Symbian, the viewfinder is always set to landscape due to the native platform settings under Java Runtime. This applies for devices which use Java Runtime 2.1 for Symbian as defined on Java Developer's Library:

    Java Developer's Library 3.10 > Developer's guides > Multimedia > Creating multimedia applications > Using the Mobile Media API > Taking photos:
    http://library.developer.nokia.com/i...553D802F9.html

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Regular Contributor
    Join Date
    Mar 2011
    Location
    Pune,Maharashtra,India
    Posts
    92

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Quote Originally Posted by navratan.soni@gmail.com View Post
    Hello r2j7,

    Thanks for your response.

    This issue coming before capturing image i.e. when video control screen displays, every objects view on the screen are roated by 90' counter clockwise. On capturing also it shows same way.
    I think this issue already discussed on this forum,please see following link-
    http://www.developer.nokia.com/Commu...-Degrees-on-C7
    Regards,
    Pradip

  6. #6
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello pradip,

    Thank you for reply.

    it seems like issue remains unsolved on the link you provided for C7.

    Does this a firmware issue?? I tested on nokia C5-03 with latest firmware V20.0.024. you can see the video capture on following youtube link
    http://www.youtube.com/watch?v=CO-j7RkJOpw

    When i turn the phone to landscape mode the screen shows a camera icon(see on above youtube video) but you can still capture image.
    I check many java me camera app but no one shows current video orientation during image capture however symbian apps are working in right way.

    Please tell if any workaround found on this issue

  7. #7
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello,

    based on the testing with the latest sw for C5-03, it seems to be the case indeed as you have described. Thank you for reporting the issue.

    I will examine the scope bit more and get back to you asap.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  8. #8
    Regular Contributor
    Join Date
    Mar 2011
    Location
    Pune,Maharashtra,India
    Posts
    92

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Quote Originally Posted by navratan.soni@gmail.com View Post
    Hello pradip,

    Thank you for reply.

    it seems like issue remains unsolved on the link you provided for C7.

    Does this a firmware issue?? I tested on nokia C5-03 with latest firmware V20.0.024. you can see the video capture on following youtube link
    http://www.youtube.com/watch?v=CO-j7RkJOpw

    When i turn the phone to landscape mode the screen shows a camera icon(see on above youtube video) but you can still capture image.
    I check many java me camera app but no one shows current video orientation during image capture however symbian apps are working in right way.

    Please tell if any workaround found on this issue
    I am also developing applications for C7-00 for camera handling,but I didn't get such issue.So can you provide me your code snippet to check.
    Regards,
    Pradip

  9. #9
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello Pradip,

    I was not testing the app for C7-00 rather it is c5-03 and c6-00 on which i am testing and getting the issue we are discussing.

    I used many combination in code with both Form and Canvas based logic and its working on other devices then the above mentioned.

    Also note that not only my app but many other app I downloaded and tested on c5-03 but result are same however if you still want me post code snippet, i will post that.

  10. #10
    Regular Contributor
    Join Date
    Mar 2011
    Location
    Pune,Maharashtra,India
    Posts
    92

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Quote Originally Posted by navratan.soni@gmail.com View Post
    Hello Pradip,

    I was not testing the app for C7-00 rather it is c5-03 and c6-00 on which i am testing and getting the issue we are discussing.

    I used many combination in code with both Form and Canvas based logic and its working on other devices then the above mentioned.

    Also note that not only my app but many other app I downloaded and tested on c5-03 but result are same however if you still want me post code snippet, i will post that.
    yes,you can post code snippet.
    Regards,
    Pradip

  11. #11
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Here is the code snippet:

    private final Player getCamera() {
    try {
    return Manager.createPlayer("capture://devcam0");
    } catch (Exception e) {
    try {
    return Manager.createPlayer("capture://image");
    } catch (Exception ex1) {
    try {
    return Manager.createPlayer("capture://video");
    } catch (Exception ex2) {
    System.out.println("Get camera device failed!");
    return null;
    }
    }
    }
    }

    public void Initialize() {

    try {
    synchronized (this) {
    if (player == null) {
    player = getCamera();
    player.addPlayerListener(this);
    }
    }
    player.realize();
    if ((vidc = (VideoControl) player.getControl("VideoControl")) != null) {
    vidc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO , this); // its canvas based ui

    }

    try {
    int mVideoHeight = vidc.getSourceHeight();
    int mVideoWidth = vidc.getSourceWidth();

    vidc.setDisplayLocation((getWidth() - mVideoWidth) / 2, (getHeight() - mVideoHeight) / 2);
    vidc.setDisplaySize(mVideoWidth, mVideoHeight);

    } catch (Exception me) {
    }

    player.prefetch();

    } catch (Exception me) {
    System.err.println("ex " + me);
    close();
    }
    }

    public boolean startCamera() {

    if (player == null) {
    return false;
    }
    try {
    player.start();
    vidc.setVisible(true);
    return true;
    } catch (Exception ex) {
    System.err.println(ex);
    close();
    }
    return false;
    }

  12. #12
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello,

    this has been identified as an issue on S60 5th Edition devices and is under investigation.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  13. #13
    Regular Contributor
    Join Date
    Mar 2011
    Location
    Pune,Maharashtra,India
    Posts
    92

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Quote Originally Posted by navratan.soni@gmail.com View Post
    Here is the code snippet:

    private final Player getCamera() {
    try {
    return Manager.createPlayer("capture://devcam0");
    } catch (Exception e) {
    try {
    return Manager.createPlayer("capture://image");
    } catch (Exception ex1) {
    try {
    return Manager.createPlayer("capture://video");
    } catch (Exception ex2) {
    System.out.println("Get camera device failed!");
    return null;
    }
    }
    }
    }

    public void Initialize() {

    try {
    synchronized (this) {
    if (player == null) {
    player = getCamera();
    player.addPlayerListener(this);
    }
    }
    player.realize();
    if ((vidc = (VideoControl) player.getControl("VideoControl")) != null) {
    vidc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO , this); // its canvas based ui

    }

    try {
    int mVideoHeight = vidc.getSourceHeight();
    int mVideoWidth = vidc.getSourceWidth();

    vidc.setDisplayLocation((getWidth() - mVideoWidth) / 2, (getHeight() - mVideoHeight) / 2);
    vidc.setDisplaySize(mVideoWidth, mVideoHeight);

    } catch (Exception me) {
    }

    player.prefetch();

    } catch (Exception me) {
    System.err.println("ex " + me);
    close();
    }
    }

    public boolean startCamera() {

    if (player == null) {
    return false;
    }
    try {
    player.start();
    vidc.setVisible(true);
    return true;
    } catch (Exception ex) {
    System.err.println(ex);
    close();
    }
    return false;
    }
    I think your code works well,but have you tried with videoControl.USE_GUI_PRIMITIVE if yes then try to update your phone software via OVI suit
    Regards,
    Pradip

  14. #14
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    Hello navratan.soni@gmail.com,

    could you provide the sw version of C6-00 which you are using for testing the issue please?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  15. #15
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    Re: MMAPI ->Video rotates 90' counter clockwise before capturing image on c5-03 and C

    C6-00 firmware version - 40.0.021.

Similar Threads

  1. Image rotates if movie clip position changed before image loading
    By supriyaakg in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2010-12-30, 03:27
  2. Replies: 0
    Last Post: 2009-08-22, 08:19
  3. Capturing a frame image of playing video
    By arupchanda in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-07-21, 15:12
  4. 1. Image capturing using MMAPI of J2ME in series 60
    By adhiyal in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-10-01, 07:26
  5. Image capturing using MMAPI of J2ME in series 60
    By adhiyal in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-10-01, 07: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
  •  
×