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

Web and WebWorks Development

Reply
Developer
Posts: 66
Registered: ‎09-14-2011
My Device: Simulator
My Carrier: Developer

Capture audio and playback

[ Edited ]

i'm doing an appliation using webworks where i have to capture the audo and the application contains playback controls too

i tried searching for "capture audio" and all results are from "java development" none from "web works development"

so considering this i came to conclusion that there are no API supporting capturing audio in webworks so i have to write it in java code and call it from javascript

 

that seems like a long process and i have to start learning how to do it which might eat much of my developing time

 

is there any way to do it in web works or i have to do it using java??

if so then can anyone direct me to tutorials that helps me in learning how to call a java class from javascript  Smiley Indifferent

Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Capture audio and playback

I had to do this not so long time ago and i had to do my own javascript extension using java, but now there is a new webworks sdk which support audio capture
http://www.blackberry.com/developers/docs/webworks/api/blackberry.media.microphone.html

So you don't really need extensions, you can also play your capture using
http://www.blackberry.com/developers/docs/webworks/api/blackberry.audio.Player.html
Developer
Posts: 66
Registered: ‎09-14-2011
My Device: Simulator
My Carrier: Developer

Re: Capture audio and playback

i'm using

blackberry websorks sdk version 1.5.1

and blackberry webworks plugin version 2.5.1

 

i opened config.xml clicked permission and clicked add features in the list there is no "blackberry.media.microphone" or "blackberry.audio.Player" in the list given

 

i tried adding it manually in the xml through text editor still its not working

i guess i have to update my SDK to latter versions

Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Capture audio and playback

Yes you have to. I think it's in sdk 2.2 where this is supported, otherwise you have to create an extension.
Developer
Posts: 66
Registered: ‎09-14-2011
My Device: Simulator
My Carrier: Developer

Re: Capture audio and playback

i checked the site there is only 2.1.1 version available no 2.2

besides it is only for visual studios

i'm working on eclipse and on 1.5.1 and this is work enviornment so i cant install or downlaod the sdk

 

what is that extension ???

how can i do using extension???

 

 

Highlighted
Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Capture audio and playback

[ Edited ]

Eclipse has no support for 2.2, but anyway you can install and invoke webworks sdk 2.2. If you are working on eclipse you can't test 2.2 functionalities in simulators, but in real devices you can.

And this article might be interesting for you...
http://devblog.blackberry.com/2011/06/blackberry-webworks-tooling-evolved/

 

And if you are decided to create your own extension you can start here...
http://docs.blackberry.com/en/developers/deliverables/30593/index.jsp?name=JavaScript+Extensions+-+D...