×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Location
    Copenhagen, Denmark
    Posts
    84

    Post MediaException: Only capture://image locator supports getSnapshot()

    The JSR-135 documentation says:

    The locators for capturing live media are defined by the following syntax in Augmented BNF notations:
    Code:
       "capture://" device [ "?" media_encodings ]
    where
    Code:
       device       = "audio" / "video" / "audio_video" / dev_name
    I would encourage you (Nokia developers) NOT to invent your own logical device called 'image'.
    Even though your intention is to capture a snapshot you still want a live (video) preview of what you're taking a picture of.

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

    Re: MediaException: Only capture://image locator supports getSnapshot()

    Thanks for the feedback. I'll pass that to the dev team.

    Note that this is perfectly allowed by the MMAPI spec
    ("image" is one example of dev_name)

    The background for this (told by the dev team) is that the camera sensor needs to be initialized differently for static images and video. Hence the snapshot will happen faster if the sensor has been already initialized right way for snapshots. (I am just repeating what I have been told, please do not kill the messenger!!!!)

    I understand though that is different from implementations on other phones and causes (more?) gray hairs for developers...

    Hartti

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Location
    Copenhagen, Denmark
    Posts
    84

    Re: MediaException: Only capture://image locator supports getSnapshot()

    Doing different initialization does make sense, but rather than defining a new device, you should specify your intention. Okay you learn as you go along and no-one thought of this when the JSR-135 was defined.

    Also, how much functionality should you include in this simple camera API and what should be thrown into JSR-234?

    I could easily imagine a method called VideoControl.prepareSnapshot(Runnable), which would initialize, focus and adjust lighting of the camera (manufacturer controlled/implemented) before running it's parameter. This would only be proper for low-end phones which doesn't support JSR-234, where you get full control.
    Last edited by Steel_BRS; 2008-06-24 at 10:07.

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

    Re: MediaException: Only capture://image locator supports getSnapshot()

    Valid points, passed these to the respective spec leads

    Hartti

  5. #5
    Registered User
    Join Date
    Oct 2007
    Posts
    7

    Re: MediaException: Only capture://image locator supports getSnapshot()

    Hi,

    we see that getSnapshot with the locator capture://video works ok on all s60 devices we have tested, and on the newer s40 devices - it only fails with the mentioned exception on older s40 devices.

    on which Nokia devices should we use the capture://image locator instead of capture://video? Or maybe we can safely use capture://image on all nokia devices?

    regards
    greg

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

    Re: MediaException: Only capture://image locator supports getSnapshot()


    AFAIK, You can use the following locators in S40 devices :

    capture://image (for photo capture)
    capture://video (for video recording)

    What do you mean by the older S40 devices, could you named the same you have testing with?

    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. 6300 getSnapshot problem
    By damien_a in forum Mobile Java General
    Replies: 2
    Last Post: 2010-07-16, 15:31
  2. jsr135 highest supported camera resolutions for getSnapShot() on N95
    By garyjamessilva in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-05-30, 21:14
  3. Broken images from getsnapshot()
    By zxcn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-10-17, 10:19
  4. MediaException when prefetch or play an amr file of 6230i
    By qiu_swing in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-09-27, 17:21
  5. JSR-135 getSnapshot on Nokia 6102i
    By davidmanpearl in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-07-24, 21:12

Posting Permissions

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