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

NEW BABCOCK MI SPEC RELAY 10A 270ohm 26.5V COIL BH119-2 (S18-T-26A)
$34.99
NEW BABCOCK MI SPEC RELAY 10A 270ohm 26.5V COIL BH119-2  (S18-T-26A) pictureSPRECHER SCHUH GE MAGNETIC STARTER NEMA 4 ENCLOSURE CR4G1TF 0.8-1.2A 24V COIL
$59.99
SPRECHER SCHUH GE MAGNETIC STARTER NEMA 4 ENCLOSURE CR4G1TF 0.8-1.2A 24V COIL pictureSPRECHER SCHUH GE MAGNETIC STARTER NEMA 4 ENCLOSURE CR4G1TF 0.8-1.2A 480V COIL
$59.99
SPRECHER SCHUH GE MAGNETIC STARTER NEMA 4 ENCLOSURE CR4G1TF 0.8-1.2A 480V COIL pictureSPRECHER SCHUH GE MAGNETIC STARTER NEMA 4 ENCLOSURE CR4G1TF 0.8-1.2A 220V COIL
$59.99
SPRECHER SCHUH GE MAGNETIC STARTER NEMA 4 ENCLOSURE CR4G1TF 0.8-1.2A 220V COIL pictureWEG 3 POLE NON REVERSING AC CONTACTOR CONTACTOR CWM300 110-130VAC/DC COIL
$224.99
WEG 3 POLE NON REVERSING AC CONTACTOR CONTACTOR CWM300 110-130VAC/DC COIL picture






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