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
Contributor
Posts: 24
Registered: ‎10-12-2011
My Device: Lots
My Carrier: All

Problems with using Blackberry.Media.Microphone

Hi,

 

I am developing a BB WebWorks application and I need to record audio using the device microphone.  I've read the documentation at...

 

http://www.blackberry.com/developers/docs/webworks/api/blackberry.media.microphone.html

 

but its not clear WHERE I should be recording TO or where the application is allowed to record to?  

 

When I do try and record something to "file://SDCard/" or "file://store/home/user/voicenotes/" for example the onError callback function is executed and I get the following...

 

ErroCode: "-1"

ErrorMessage: "This application is not allowed to access controlled network resources".

 

I can follow up with some sample code if it helps?

 

Thanks in advance.

 

 

Highlighted
Contributor
Posts: 24
Registered: ‎10-12-2011
My Device: Lots
My Carrier: All

Re: Problems with using Blackberry.Media.Microphone

Solved, needed three slashes in the path i.e. "file:///SDCard/" or "file:///store/home/user/voicenotes/" .

 

Note also to store stuff specific only to your app use "local:///blah".