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
Highlighted
Contributor
Posts: 30
Registered: ‎02-04-2011
My Device: BB9900 & PlayBook16GB
My Carrier: Rogers

Simulate Volume Controls on PlayBook Simulator. Possible?

Hello,

 

I have been looking for a way to map JS functions to the Volume Keys on the PlayBook. I found the following API from the Webworks API(edited for volume keys):

 

 

function trapForVolumeUp()
  {
      blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_VOLUMEUP, handleVolUp);
  }
function trapForVolumeDown()
  {
      blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_VOLUMEDOWN, handleVolDown);
  }

 

 

Has anyone tried these on a PlayBook? Do they work? Is it possible to simulate the volume keys on the VMWare simulator to test?

 

Thanks