BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Snapshot (http://www.blackberryforums.com/developer-forum/177966-snapshot.html)

friendlysoft 02-24-2009 03:36 AM

Snapshot
 
Hello, every body.
I'm writing a personal card management software, and it will use j2me MMAPI
for capture a picture through CMOS sensor.

try {
pCtrl = Manager.createPlayer("capture://video");//?encoding=rgb888&width=160&height=320&fps=10");
pCtrl.realize();
vCtrl = (VideoControl)pCtrl.getControl("VideoControl");
if (null == vCtrl) {
return;
}
vCtrl.initDisplayMode(VideoControl.USE_DIRECT_VIDE O, canvas);

} catch (Exception e) {
e.printStackTrace();
}
The code work well on WTK 2.5.2, but can't work on 8320 BB.
I try debug it on simulator, catch the reason is createPlayer will through MediaException always. and I view blackberry's mmapi docs, it sample code is:
1. Wave audio files: audio/x-wav
2. AU audio files: audio/basic
3. MP3 audio files: audio/mpeg
4. MIDI files: audio/midi
5. Tone sequences: audio/x-tone-seq

Is it means blackberry 8320 not support video capture?
Waitting online, thanks in advanced!

friendlysoft 02-25-2009 03:23 AM

No anyone meet the question? :)

Motorcycle Mama 02-25-2009 06:34 AM

What OS version number is on the device?

You need version 4.5 on that device for video.

friendlysoft 02-25-2009 08:25 PM

v4.5.0.124

rachamphetamine 02-25-2009 08:26 PM

Moved to Developers Section


All times are GMT -5. The time now is 07:39 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.