You Are Here:

Community: Developer Discussion Boards

#1 Old getSnapshot works on 6630, but not 7610 - 2005-10-05, 07:52

Join Date: Aug 2005
Posts: 5
Gergall
Offline
Registered User
Here's a brief rundown of my sitation:

I am working on a program/game that accesses the camera and takes snapshots. The Nokia 6630 is working wonderfully. After creating a Player and a Videocontrol, I set them up and start using a line that looks like this:
bmpImage = videoControl.getSnapshot("encoding=bmp");
(bmpImage is a byte array)


When I try this on the Nokia 7610 phone, a MediaException is thrown every time I try to take a snapshot. The exception is as follows:
Symbian OS Error: -18
I should add that if I attempt to actually access bmpImage in any way, I receive a Null Pointer runtime error. This should be obvious or at least not surprising.

At first I thought that I was using the wrong encoding, so I replaced my line with "...getSnapshot(null);" Null uses the default encoding and should never fail. When this didn't work either, I knew I had a more serious problem.

I am looking for suggestions as to how I might correct this problem so that I can take snapshots with the 7610.

Thank you
Reply With Quote

#2 Old Re: getSnapshot works on 6630, but not 7610 - 2005-10-05, 12:17

Join Date: Mar 2005
Posts: 499
Location: Paris
njzk2
Offline
Regular Contributor
-18 is 'not ready'
i use the 6670, which is basically the 7610, and no problems
i do :

player = Manager.createPlayer("capture://video");
player.realize();
videoControl = (VideoControl) (player.getControl("VideoControl"));
videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
player.start();
videoControl.setVisible(true);

and later i take the snapshot just the way you do it
('this' is a canvas)
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
Proxies, the HTTP stack and Series 60 v2.0 xiddesign Symbian Networking & Messaging 15 2006-08-11 17:58
Smil layout problem with Nokia 6630, 6680 and 7610 Juergen Merkel General Messaging 0 2005-09-01 09:57
6630 network connection on O2 leisuresuit Mobile Java Tools & SDKs 0 2005-08-04 22:06
6630, 7610 Stuttering Game AdyW_RP Mobile Java General 3 2005-05-31 18:36
Nokia 7610, 7650, 3650, 3660 SyncML over HTTPS/SSL FenDevMan OMA DM/DS/CP 0 2005-01-19 12:37

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