×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    28

    Locator not supported: capture://video

    Hi ,
    I have integrated the 'Nokia Symbian3 SDK v1.0' in my Netbeans 6.8 IDE. and try to run an image capture application but when I try to run the application is throws the following exception :

    javax.microedition.media.MediaException: Locator not supported: capture://video
    at com.nokia.microedition.media.ManagerImpl.createPlayer(ManagerImpl.java:455)
    at javax.microedition.media.Manager.createPlayer(Manager.java:56)

    Also I have checked the 'System.getProperty("supports.video.capture")' property that returns the false in emulator.

    The code I am using is as follows:

    player = Manager.createPlayer("capture://video"); //create a player
    player.realize();
    videoControl = (VideoControl) player.getControl("VideoControl");


    Please help me..

    Thanks in advance!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Locator not supported: capture://video

    If you visit http://discussion.forum.nokia.com/fo...ral-Discussion, and look at your threads, can you see some pattern? All of them are related to the Java boards, and thus moved there. It would be much better if you create them there already when posting. http://discussion.forum.nokia.com contains links for them
    Quote Originally Posted by amit.rathi1982 View Post
    Also I have checked the 'System.getProperty("supports.video.capture")' property that returns the false in emulator.
    That is true, the emulators do not necessarily support video input.

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: Locator not supported: capture://video

    Hi wizard_hu,

    thanks for the information.

    So acording to you If run this code on my real device , it should work?

    I ttried to run the same on real device (N 72) but it dont installed there and shows "unsupported version".

    Please suggest me a way so that I can run this successfully or the reason why it is happening.

    realy thanks.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Locator not supported: capture://video

    The N72 (http://www.forum.nokia.com/devices/N72) is not really compatible with Symbian^3, first of all it is a 5 years old device, while Symbian^3 devices were released less than a year ago.
    The appropriate SDK can be downloaded from Library above, Tools and downloads, Tools archive (bottom of the page), S60 Platform SDKs for Symbian OS, for Java - if you open the device specification page, you will see which version of the SDK you need ("Developer platform" at the very beginning).

  5. #5
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: Locator not supported: capture://video

    wizard_hu,

    1). I am working on a application that uses the GPS service and I have integrated the 'Nokia Symbian3 SDK v1.0' in my Netbeans 6.8 IDE. Is this a right SDK I have integrated? If it is the right one then why it showing exception (javax.microedition.media.MediaException: Locator not supported: capture://video) on emulator when run.

    2). Also can you please give me a hint from where I can find the list of NOKIA devices those supports the GPS functionality as we have to take in bulk these same device and have to give to the user.

    Please guide...

    Thanks a lot.

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

    Re: Locator not supported: capture://video

    Quote Originally Posted by amit.rathi1982 View Post
    wizard_hu,

    1). why it showing exception (javax.microedition.media.MediaException: Locator not supported: capture://video) on emulator when run.

    2). Also can you please give me a hint from where I can find the list of NOKIA devices those supports the GPS functionality.

    Please guide...

    Thanks a lot.
    Check the above quoted lines and below are the replies:

    1. the emulator might or might not support the locator you are referring to, that is the limitation. For these kind of the operation, you should test the app on the real device and I am sure in your case it will work. Wizard has already suggested to you this in the post number 4.

    2. Location API for J2ME (JSR 179), a set of generic APIs that can be used for developing location-based services. In addition, the article offers guidelines for designing location-based services. So you can search here for the JSR 179, if that is listed there, the device supports else not.

    Check and revert.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: Locator not supported: capture://video

    Raj,

    Thanks for the information. But the initial functionality when the application runs is just creating a player by -
    (player = Manager.createPlayer("capture://video"); )
    OR
    (player = Manager.createPlayer("capture://image"); )" to run the video and then capture the image to save in the phone memory. The GPS functionality comes in light later.

    So the question is why initially it is throwing exception as initially I am not using GPS?
    or emulator can also show the exception when creating the player?

    Thank u very much

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

    Re: Locator not supported: capture://video

    Quote Originally Posted by amit.rathi1982 View Post
    Raj,


    So the question is why initially it is throwing exception as initially I am not using GPS?
    or emulator can also show the exception when creating the player?

    Thank u very much
    Yeah, that's the point, emulator can throw the Exception above while creating the player. So testing the app on the real device would provide the clear picture.
    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
    May 2011
    Posts
    28

    Re: Locator not supported: capture://video

    Thanks RAj. I will try to run same on real device and get back to you.

  10. #10
    Registered User
    Join Date
    May 2011
    Posts
    28

    Re: Locator not supported: capture://video

    Hi,
    I tried to run the application on Nokia C5-03 which is one of the GPS enabled device. But when it try to get the longotude/latitude it throws exception- "location request timed out ".

    The coe I am using given below:

    public static String checkLocation() throws Exception {
    String string = "not found";
    try {
    Location l;
    LocationProvider lp;
    Coordinates c;
    Criteria cr = new Criteria();
    cr.setHorizontalAccuracy(500);
    lp = LocationProvider.getInstance(cr);
    l = lp.getLocation(60);
    c = l.getQualifiedCoordinates();
    if (c != null) {
    // Use coordinate information
    double lat = c.getLatitude();
    double lon = c.getLongitude();
    string = lat + "-" + lon;
    } else {
    string = "Location API failed";
    }
    System.out.println("location=" + string);
    //display.setCurrentItem(new StringItem("lat/lon", string));
    } catch (Exception e) {
    System.out.println("exception in check location=" + e.getMessage());
    e.printStackTrace();
    return e.getMessage();
    }
    return string;
    }

    Please Help !

    Thankssssss

  11. #11
    Registered User
    Join Date
    Dec 2009
    Posts
    376

    Re: Locator not supported: capture://video

    Quote Originally Posted by amit.rathi1982 View Post
    Hi,
    I tried to run the application on Nokia C5-03 which is one of the GPS enabled device. But when it try to get the longotude/latitude it throws exception- "location request timed out ".

    The coe I am using given below:

    public static String checkLocation() throws Exception {
    String string = "not found";
    try {
    Location l;
    LocationProvider lp;
    Coordinates c;
    Criteria cr = new Criteria();
    cr.setHorizontalAccuracy(500);
    lp = LocationProvider.getInstance(cr);
    l = lp.getLocation(60);
    c = l.getQualifiedCoordinates();
    if (c != null) {
    // Use coordinate information
    double lat = c.getLatitude();
    double lon = c.getLongitude();
    string = lat + "-" + lon;
    } else {
    string = "Location API failed";
    }
    System.out.println("location=" + string);
    //display.setCurrentItem(new StringItem("lat/lon", string));
    } catch (Exception e) {
    System.out.println("exception in check location=" + e.getMessage());
    e.printStackTrace();
    return e.getMessage();
    }
    return string;
    }

    Please Help !

    Thankssssss

    Continue on previous thread
    http://discussion.forum.nokia.com/fo...ht=#post843573




    and test your application using Remote device access and check whether error still there

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

    Re: Locator not supported: capture://video

    Please take special care while you are quoting the person, Quote the only area which you are concerning about, and not the complete post. This will save the space and clear the understandability of the post you are replying and against which lines.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  13. #13
    Registered User
    Join Date
    Dec 2009
    Posts
    376

    Re: Locator not supported: capture://video

    Quote Originally Posted by raj_J2ME View Post
    Please take special care while you are quoting the person, Quote the only area which you are concerning about, and not the complete post. This will save the space and clear the understandability of the post you are replying and against which lines.
    Will take care from next time thanx

Similar Threads

  1. Error "Not supported locator" while playing rtsp stream
    By dndung in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2010-04-21, 11:36
  2. MediaException: locator not supported when play mpg file
    By kvht in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-10-22, 09:47
  3. Nokia 6280 Problems Capture Video and Locator...
    By rodperez in forum Mobile Java Media (Graphics & Sounds)
    Replies: 10
    Last Post: 2008-05-19, 18:35
  4. Not supported locator: capture://video N73
    By nagkumar in forum Mobile Java General
    Replies: 2
    Last Post: 2007-02-19, 09:00
  5. Video capture supported in what devices?
    By crcerror in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-04-07, 19:43

Posting Permissions

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