BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-25-2006, 10:02 AM   #1
Latho
New Member
 
Join Date: Jan 2006
Model: 8700
Posts: 3
Default Audio Streaming on Blackberry 8700

Please Login to Remove!

We want to record a voice memo with the Blackberry 8700.
The only way to do this is to use the Audio class.
Is that right? After recording the memo it should be possible
to edit the memo (overwrite, append or insert).
We need a method to play only chunks of the memo (Audio-Streaming) .
The Audio class can only play the whole memo. So if you stop playing you
never know the play position.

Can anybody help us ?

Last edited by Latho; 01-25-2006 at 11:07 AM..
Offline  
Old 01-25-2006, 11:05 AM   #2
eradis
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Default

To the best of my knowledge it is not possible on the 8700. The only BlackBerry devices to support Voice memos (Voicenotes) is the 7520 and 7100i.

The Audio class requires you to specify the codec (AUDIO_CODEC_VOICENOTE ) and AUDIO_CODEC_VOICENOTE is IDEN only - as per javadocs.
Offline  
Old 01-25-2006, 11:44 AM   #3
Latho
New Member
 
Join Date: Jan 2006
Model: 8700
Posts: 3
Default RecordControl

What´s about the following example code from the Java ME MMAPI Packages:

try {
// Create a Player that captures live audio.
Player p = Manager.createPlayer("capture://audio");
p.realize();
// Get the RecordControl, set the record stream,
// start the Player and record for 5 seceonds.
RecordControl rc = (RecordControl)p.getControl("RecordControl");
ByteArrayOutputStream output = new ByteArrayOutputStream();
rc.setRecordStreatm(output);
rc.startRecord();
p.start();
Thread.currentThread().sleep(5000);
rc.commit();
p.close;
} catch (IOException ioe) {
} catch (MediaException me) {
} catch (InterruptedException ie) {}

Does anyone know if this works on the 8700 ?
Offline  
Old 01-25-2006, 12:07 PM   #4
eradis
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Default

I would bet that
Code:
Player p = Manager.createPlayer("capture://audio");
throws a MediaException - Cannot create player.

The MMAPI is very generic and up to the device manufacturers implementation whether the feature (i.e. capture://audio) is supported or not.

But again you won't know for sure until you actually try it on the device.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2799.99



POLAR PLASTICS C64 Construction Film,6x100,4Mil,Clear PK 4 picture

POLAR PLASTICS C64 Construction Film,6x100,4Mil,Clear PK 4

$178.04



MCR 6003M Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW  SIZE MEDIUM picture

MCR 6003M Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW SIZE MEDIUM

$13.99



MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW  SIZE LARGE picture

MCR 6003L Commodore PVC/Non-Woven Poly/Nylon RAIN Suit 3 PC YELLOW SIZE LARGE

$13.99







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