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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 21
Registered: ‎12-25-2011
My Device: Playbook
My Carrier: No mobile
Accepted Solution

A question about Audio recording examples

I have tried to run to the following audio recording examples:




I saved the code into an "index.html' and created a simple config.xml to grant shared files access.

I have successfully built the application and deployed onto my playbook.


When I click "record" button on the application, it gives me the following JavaScript Alert:


Record, e:'undefined' is not an object.


I did a search and didn't find any related topics.


Also, I think this may have something to do with using google's api.

I have read about how to add features in config.xml, but I can't find a helpful example to tell me how I know where do I find the feature elements' details from "google" or other places.



Posts: 21
Registered: ‎12-25-2011
My Device: Playbook
My Carrier: No mobile

Re: A question about Audio recording examples

Silly me.


Forgot to put

<feature id="blackberry.io.dir" />

in my config.xml.


But there's another question:


When will we need to access features under external domains? And how can we find out information (i.e. id) about these features from external domains?




<access uri="http://www.somedomain.com" subdomains="true">
   <feature id="blackberry.app.event" required="true" version="1.0.0"/>
   <feature id="blackberry.invoke" required="true" version="1.0.0"/>

I don't understand the above codeSmiley Sad.


Thanks a lot!

Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: A question about Audio recording examples

Hi cuixu66,


You would need to access fetures from external domains when you are running javascript from those domains.


For example if you had the following piece of code to go with yours


<script type="text/javascript" src="http://www.somedomain.com/someJs.js"> </script>

This would then mean that "someJS.js" can use event and invoke APIs.


Does that make sense? 

1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)