Esempio n. 1
0
 public void mute(String playerId) {
   SqueezePlayer player = getPlayer(playerId);
   if (player == null) return;
   if (player.getVolume() > 0) {
     setVolume(playerId, 0);
   }
 }
Esempio n. 2
0
 public void unMute(String playerId) {
   SqueezePlayer player = getPlayer(playerId);
   if (player == null) return;
   if (player.getVolume() == 0) {
     setVolume(playerId, player.getUnmuteVolume());
   }
 }
Esempio n. 3
0
 public void volumeDown(String playerId) {
   SqueezePlayer player = getPlayer(playerId);
   if (player == null) return;
   setVolume(playerId, player.getVolume() - VOLUME_CHANGE_SIZE);
 }