×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Dec 2003
    Posts
    74

    hey nokia please return to capture://video for the rest of the S40 devices

    Hi Nokia, for some reason you switched the image capture URI to "capture://image" in the Nokia 6280. Please, please don't do that on any of the other phones. Switch back to "capture://video". If you don't I'm going to have to write code into my software that says something like this:

    Code:
        String plat = System.getProperty("microedition.platform");
        if( plat.startsWith("Nokia6280")
          || plat.startWith("Nokia12345")
          || plat.startWith("Nokia12346")
          || plat.startWith("Nokia12347")
          || plat.startWith("Nokia12348")
          || plat.startWith("Nokia12349") ) {
             return "capture://image";
        }
        else { return "capture://video"; }
    and i'm sure you can see that leads to major pain, and you'll break my app on every new phone that you release. So don't do it. Go back to "capture://video". Thank you.

    --simon

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    Singapore
    Posts
    23

    Thumbs down Re: hey nokia please return to capture://video for the rest of the S40 devices

    YES!

    Please stay compliance to JSR specification and industry norm.
    Is starting to be a pain to write apps to work with Nokia.

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: hey nokia please return to capture://video for the rest of the S40 devices

    I got some answers from Series40 organization
    There is a good reason for having separate locators for video and images. As the camera hw is modal (you have to initialize the hw either in video mode or in still image mode) and if you want to take a picture in video mode, the hw have to be changed to still image mode first and hence serious shutter lag is experienced. With separate locators the hw can be initialized to the correct mode and the user experience is much smoother.

    Instead of hardcoding a list of product names your could try other approaches:
    - verify whether the getSnapshot() method is valid on a capture://video locator, and if not, attempt to use capture://image instead
    - getSupportedContentTypes() can be queried for the capture:// protocol, and if "image" is returned, it can be assumed that the capture://image locator is used for taking photos.
    - attempt to create a capture://image Player, and if it succeeds, use it in place of capture://video

    Hartti

  4. #4
    Registered User
    Join Date
    Jan 2007
    Location
    Manila, Philippines
    Posts
    39

    Unhappy Re: hey nokia please return to capture://video for the rest of the S40 devices

    hello hartti.... can you pls... do it in code....
    im getting an empty result if a supply capture:// in getSupportedContentType...
    and how will i verify if whether the getSnapshot() method is valid on a capture://video locator or not...
    tnxs....

  5. #5
    Registered User
    Join Date
    Jan 2007
    Location
    Manila, Philippines
    Posts
    39

    Talking Re: hey nokia please return to capture://video for the rest of the S40 devices

    ok got it..

  6. #6
    Registered User
    Join Date
    Oct 2004
    Posts
    16

    Re: hey nokia please return to capture://video for the rest of the S40 devices

    Quote Originally Posted by Liyo
    hello hartti.... can you pls... do it in code....
    im getting an empty result if a supply capture:// in getSupportedContentType...
    and how will i verify if whether the getSnapshot() method is valid on a capture://video locator or not...
    tnxs....
    Hi,

    Great info in the previous post.

    Liyo, this is easier anyway I think:

    -- snip --
    try {
    // new phones with dual mode hardware need to be initialized
    // to "image mode" but older models don't support this..
    player = Manager.createPlayer(image_schema);
    } catch (Exception ignore) {
    // fall back to the old style uri
    player = Manager.createPlayer(video_schema);
    }
    player.realize();
    -- snip --

    Worked for me.

    //matt

  7. #7
    Registered User
    Join Date
    Jun 2007
    Posts
    12

    Re: hey nokia please return to capture://video for the rest of the S40 devices

    Code:
            try{
                mPlayer = Manager.createPlayer("capture://video");
            } catch (Exception e) {
                try{
                mPlayer = Manager.createPlayer("capture://image");
                } catch(Exception e2){}
            }
    i tried the above. cant seem to work. pls help

  8. #8
    Registered User
    Join Date
    Jan 2004
    Location
    The surburbs of Bangkok, Thailand
    Posts
    135

    Re: hey nokia please return to capture://video for the rest of the S40 devices

    Like matpowel said, you should check for this new "capture://image" support before checking the "capture://video".

    I used a similar solution, try something like this:

    try
    {

    Object p = null; //you can use Player instead of 'Object'
    try
    {
    //some nokia s40 phones - try this first because capture://video would pass here but fail on taking pic
    p = javax.microedition.media.Manager.createPlayer("capture://image");
    }
    catch(Exception e1)
    {
    //ok, this device doesn't use the capture://image thing
    p = javax.microedition.media.Manager.createPlayer("capture://video");
    }

    ((javax.microedition.media.Player)p).realize();

    //do the rest...

    //add a catch to match the outer try...
    Liberate yourself from the enslavement of World Monopoly!

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 14:19
  2. Nokia 9210 PC Suite & Nokia 9210 issues
    By Nokia_Archive in forum Symbian
    Replies: 4
    Last Post: 2007-09-22, 00:19
  3. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 13:58
  4. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46
  5. Replace fix line modem with nokia 30 for remote devices
    By samson_lam in forum General Messaging
    Replies: 1
    Last Post: 2002-10-02, 12:19

Posting Permissions

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