In my application I play a video on device and when I tap on screen while video is playing a popup window is opened at the center of the screen with a volume button on that popup screen. When I click on that button volume should increase and after maximum level of volume it should decrease. I don’t know how to do it programmatically in BlackBerry.
Share
To control the volume, you need to get
javax.microedition.media.control.VolumeControlobject from thejavax.microedition.media.Playerobject.Invoking
Player.getControl(), using a String parameter with the name of the control will return the control object. Example code:After you have the
VolumeControlobject you can useint setLevel(int level)to set the volume level. API Link here.You can check the Video Support section of the BlackBerry Java Application – Fundamental Guilds.