BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-24-2009, 04:36 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Model: 8320
PIN: N/A
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");
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!
Offline  
Old 02-25-2009, 04:23 AM   #2 (permalink)
New Member
 
Join Date: Feb 2009
Model: 8320
PIN: N/A
Carrier: CUGSM
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

No anyone meet the question?
Offline  
Old 02-25-2009, 07:34 AM   #3 (permalink)
BlackBerry Master
 
Motorcycle Mama's Avatar
 
Join Date: May 2008
Model: 9930
OS: 7.1.0.163
PIN: N/A
Carrier: Verizon
Posts: 4,351
Post Thanks: 0
Thanked 246 Times in 238 Posts
Default

What OS version number is on the device?

You need version 4.5 on that device for video.
Offline  
Old 02-25-2009, 09:25 PM   #4 (permalink)
New Member
 
Join Date: Feb 2009
Model: 8320
PIN: N/A
Carrier: CUGSM
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

v4.5.0.124
Offline  
Old 02-25-2009, 09:26 PM   #5 (permalink)
BBF Moderator
 
rachamphetamine's Avatar
 
Join Date: Mar 2008
Model: --
PIN: E SOL
Carrier: VZW
Posts: 3,117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Moved to Developers Section
Offline  
Closed Thread


Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Flash Furniture High Back Leather Executive Office Chair With Memory Foam
$209.46
 Flash Furniture High Back Leather Executive Office Chair With Memory Foam pictureKneeling Computer Chair Memory Foam Comfortable Ergonomic Design Adjustable Seat
$96.99
Kneeling Computer Chair Memory Foam Comfortable Ergonomic Design Adjustable Seat pictureMicro SD Storage Board Mciro SD TF Card Memory Shield Module SPI For Arduino SP
$0.99
Micro SD Storage Board Mciro SD TF Card Memory Shield Module SPI For Arduino SP pictureAvaya DAL2 Duplication Memory Board 700405079
$125.0
Avaya DAL2 Duplication Memory Board 700405079 pictureMEASUREX 05327902 04327902 REV A 128k BYTE VIDEO MEMORY BOARD
$742.5
MEASUREX 05327902 04327902 REV A 128k BYTE VIDEO MEMORY BOARD picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.