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


NS1-63-NA. EATON /Moeller breaker  MAIN SWITCH  63 AMPS picture

NS1-63-NA. EATON /Moeller breaker MAIN SWITCH 63 AMPS

$375.00



225 Amp Disconnect Cutter Switch 3-Pole Double Throw Circuit Breaker Cut Switch picture

225 Amp Disconnect Cutter Switch 3-Pole Double Throw Circuit Breaker Cut Switch

$35.91



ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR picture

ELECTRIC COOLING FAN GROUND-ING THERMO-STAT SWITCH RADIATOR TEMP-ERATURE SENSOR

$17.99



Water Pressure Switch Water Pump Pressure Switch 60/80 Pressure Switch for Wa... picture

Water Pressure Switch Water Pump Pressure Switch 60/80 Pressure Switch for Wa...

$30.35



9 Volt LED Light - On/Off Switch - 5 Pack picture

9 Volt LED Light - On/Off Switch - 5 Pack

$11.95



GE Emergency Power Transfer Switch 100/200-Amp 240-Volt 1-Phase Non-Fused Manual picture

GE Emergency Power Transfer Switch 100/200-Amp 240-Volt 1-Phase Non-Fused Manual

$179.99







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