BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-24-2009, 03: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, 03: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, 06: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 249 Times in 240 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, 08: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, 08: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





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