|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I am doing audio operations with MMAPI. I am trying to Mute and Remute the audio. The following codings are not working. Anybody help to solve the problem. Coding is as follows if(vc.isMuted()) { setUnmute(); repaint(); } else { setMute(); repaint(); } public void setMute() { try { if(vc == null) vc = (VolumeControl) player.getControl("VolumeControl"); vc.setMute(true); } catch (Exception e) { System.out.println("Error = "+e); } } public void setUnmute() { try { if(vc == null) vc = (VolumeControl) player.getControl("VolumeControl"); vc.setMute(false); } catch (Exception e) { System.out.println("Error = "+e); } } Thanks in advance. Regards, Dhanalakshmi. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Probem using mute audio using MMAPI... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|