Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 74
Registered: ‎01-03-2010
My Device: Not Specified
Accepted Solution

Record and send audio

Is it possible to record with player and simaltaneously sending recorded data to server using UDP in BB? How recorded data can be handled before commiting? Does we need custom datasource or circularbytebuffer for these?Bufferring  seems to be the only option which gives unwanted delay, but no API like android audio track. A streaming udp server will also help.

If someone get any idea please share.

Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: Record and send audio

Yes. You need a custom output stream. The recorder calls the write method periodically. IIRC, once every 1000 bytes need to be writen.

Developer
Posts: 74
Registered: ‎01-03-2010
My Device: Not Specified

Re: Record and send audio

so Aviator, I need a UDPOutputStream to use with recorder?

Developer
Posts: 74
Registered: ‎01-03-2010
My Device: Not Specified

Re: Record and send audio

Done,  custom UDPOutputStream can do the job....

Highlighted
Contributor
Posts: 43
Registered: ‎11-24-2011
My Device: Perl
My Carrier: BB

Re: Record and send audio

Here I update a sample code for recording and playing audion on blackberry

 

http://blackberryaudiorecording.blogspot.in/