Thread: Snapshot
View Single Post
Old 02-24-2009, 04:36 AM   #1 (permalink)
New Member
Join Date: Feb 2009
Model: 8320
Carrier: CUGSM
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Snapshot

Please Login to Remove!

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");
vCtrl = (VideoControl)pCtrl.getControl("VideoControl");
if (null == vCtrl) {
vCtrl.initDisplayMode(VideoControl.USE_DIRECT_VIDE O, canvas);

} catch (Exception e) {
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!
Offline   Reply With Quote