You Are Here:

Community: Developer Discussion Boards

#1 Old hey nokia please return to capture://video for the rest of the S40 devices - 2006-06-17, 06:42

Join Date: Dec 2003
Posts: 74
sbwoodside
Offline
Regular Contributor
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
Reply With Quote

#2 Old Thumbs down Re: hey nokia please return to capture://video for the rest of the S40 devices - 2006-06-21, 13:52

Join Date: Mar 2003
Posts: 23
Location: Singapore
break10ose
Offline
Registered User
YES!

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

#3 Old Re: hey nokia please return to capture://video for the rest of the S40 devices - 2006-06-21, 19:46

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
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
Reply With Quote

#4 Old Unhappy Re: hey nokia please return to capture://video for the rest of the S40 devices - 2007-06-08, 09:15

Join Date: Jan 2007
Posts: 39
Location: Manila, Philippines
Send a message via MSN to Liyo Send a message via Yahoo to Liyo Send a message via Skype™ to Liyo
Liyo
Offline
Registered User
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....
Reply With Quote

#5 Old Talking Re: hey nokia please return to capture://video for the rest of the S40 devices - 2007-06-08, 09:42

Join Date: Jan 2007
Posts: 39
Location: Manila, Philippines
Send a message via MSN to Liyo Send a message via Yahoo to Liyo Send a message via Skype™ to Liyo
Liyo
Offline
Registered User
ok got it..
Reply With Quote

#6 Old Re: hey nokia please return to capture://video for the rest of the S40 devices - 2007-07-26, 11:55

Join Date: Oct 2004
Posts: 16
matpowel
Offline
Registered User
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
Reply With Quote

#7 Old Re: hey nokia please return to capture://video for the rest of the S40 devices - 2007-08-12, 12:21

Join Date: Jun 2007
Posts: 12
selenatan
Offline
Registered User
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
Reply With Quote

#8 Old Re: hey nokia please return to capture://video for the rest of the S40 devices - 2007-11-19, 03:40

Join Date: Jan 2004
Posts: 134
Location: The surburbs of Bangkok, Thailand
ykasidit's Avatar
ykasidit
Offline
Regular Contributor
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!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
6310i 4.80 bugs + few words about Nokia politics + other feedback mwiacek General Messaging 2 2007-11-10 14:19
Nokia 9210 PC Suite & Nokia 9210 issues Nokia_Archive General Symbian C++ 4 2007-09-22 01:19
which phones for laptop dvdljns PC Suite API and PC Connectivity SDK 2 2006-02-14 13:58
Http connection problem in 6310i teahola Mobile Java General 1 2002-10-03 19:46
Replace fix line modem with nokia 30 for remote devices samson_lam General Messaging 1 2002-10-02 13:19

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ