You Are Here:

Community: Developer Discussion Boards

#1 Old 6111 Camera and Dealing with JAR/JAD - 2006-02-03, 05:30

Join Date: Feb 2006
Posts: 2
Location: Seoul, Korea
Send a message via MSN to ffee21
ffee21
Offline
Registered User
I failed to createPlayer("capture://video") in 6111. (MediaExeption: invalid locator)

I digged up for 3 days, I got these results.



4 Content-types

video/3gpp
video/3gpp2
video/mpeg
video/mp4

support "file" and "http" protocols. And, content-type "radio" only supports "capture" protocol.
This result is brought by Manager.getSupportedContentTypes() and Manager.getSupportedProtocols().


---


So I made a small code to try 630 locators including all possible options and encodings. These URIs are generated as a sequential combinations of


String [] URIs = {
"capture://video",
"capture://devcam0",
"capture://devcam1",
"capture://video0",
"capture://video1",
};
String [] option0 = {
"",
"encoding=rgb888",
"encoding=bgr888",
"encoding=rgb565",
"encoding=rgb555",
"encoding=yuv444",
"encoding=yuv422",
"encoding=yuv420",
"encoding=jpeg",
"encoding=png",
"encoding=mpeg4",
"encoding=3gpp",
"encoding=3gpp2",
"encoding=mp4"
};
String [] option1 = {
"",
"width=240&height=320",
"width=320&height=240"
};
String [] option2 = {
"",
"type=jfif",
"type=exif"
};

For example,

capture://video
capture://video?type=jfif
capture://video?type=exif
capture://video?width=240&height=320
capture://video?width=240&height=320&type=jfif
capture://video?width=240&height=320&type=exif
capture://video?width=320&height=240
capture://video?width=320&height=240&type=jfif
capture://video?width=320&height=240&type=exif
capture://video?encoding=rgb888
capture://video?encoding=rgb888&type=jfif
capture://video?encoding=rgb888&type=exif
capture://video?encoding=rgb888&width=240&height=320
capture://video?encoding=rgb888&width=240&height=320&type=jfif
capture://video?encoding=rgb888&width=240&height=320&type=exif
capture://video?encoding=rgb888&width=320&height=240
capture://video?encoding=rgb888&width=320&height=240&type=jfif
capture://video?encoding=rgb888&width=320&height=240&type=exif
capture://video?encoding=bgr888
capture://video?encoding=bgr888&type=jfif
capture://video?encoding=bgr888&type=exif
capture://video?encoding=bgr888&width=240&height=320
capture://video?encoding=bgr888&width=240&height=320&type=jfif
capture://video?encoding=bgr888&width=240&height=320&type=exif
capture://video?encoding=bgr888&width=320&height=240
capture://video?encoding=bgr888&width=320&height=240&type=jfif
capture://video?encoding=bgr888&width=320&height=240&type=exif
capture://video?encoding=rgb565
capture://video?encoding=rgb565&type=jfif
capture://video?encoding=rgb565&type=exif
capture://video?encoding=rgb565&width=240&height=320
capture://video?encoding=rgb565&width=240&height=320&type=jfif
capture://video?encoding=rgb565&width=240&height=320&type=exif
capture://video?encoding=rgb565&width=320&height=240
capture://video?encoding=rgb565&width=320&height=240&type=jfif
capture://video?encoding=rgb565&width=320&height=240&type=exif
capture://video?encoding=rgb555
capture://video?encoding=rgb555&type=jfif
capture://video?encoding=rgb555&type=exif
capture://video?encoding=rgb555&width=240&height=320
capture://video?encoding=rgb555&width=240&height=320&type=jfif
capture://video?encoding=rgb555&width=240&height=320&type=exif
...





But nothing succeeded.




----


Now I guess that the midlet doesn't get the permission for the camera. because I get "0" as a result of

this.checkPermission("javax.microedition.media.VideoControl.getSnapshot");

and I get "false" as a result of

System.getProperty("supports.video.capture");


----

I'm uploading my midlet in the form of JAR file via Bluetooth and Nokia PC suite. The Jar file is generated by J2ME Toolkit's packaging feature. But it generates JAD file also, and I don't know how to use JAD file.




Please help me if you have succeeded in controlling camera of 6111. Or, if I did something wrong with jad/jar files, please let me know.





Thank you in advance.
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

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