List of usage examples for org.apache.cordova AudioPlayer setVolume
public void setVolume(float volume)
From source file:com.candygram.media.AudioHandler.java
License:Apache License
/** * Set the volume for an audio device//from w w w .java 2 s.c o m * * @param id The id of the audio player * @param volume Volume to adjust to 0.0f - 1.0f */ public void setVolume(String id, float volume) { AudioPlayer audio = this.players.get(id); if (audio != null) { audio.setVolume(volume); } else { System.out.println("AudioHandler.setVolume() Error: Unknown Audio Player " + id); } }