Examples of OrbMuteCallMessage


Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbMuteCallMessage

private void muteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_muteButtonActionPerformed
    CellID cellID = orbCell.getCellID();
    if (MUTE.equals(muteButton.getText())) {
        muteButton.setText(UNMUTE);
        channelComp.send(new OrbMuteCallMessage(cellID, true));
    } else {
        muteButton.setText(MUTE);
        channelComp.send(new OrbMuteCallMessage(cellID, false));
    }
}//GEN-LAST:event_muteButtonActionPerformed
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbMuteCallMessage

      return;
  }

  if (message instanceof OrbMuteCallMessage) {
      OrbMuteCallMessage msg = (OrbMuteCallMessage) message;

      if (presenceInfoAdded) {
    pm.setMute(presenceInfo, msg.isMuted());
      }

      if (msg.isMuted()) {
                nameTagComp.setNameTag(EventType.MUTE, username, alias);
      } else {
                nameTagComp.setNameTag(EventType.UNMUTE, username, alias);
      }

      return;
  }

  if (message instanceof OrbBystandersMessage) {
      OrbBystandersMessage msg = (OrbBystandersMessage) message;
      setBystanders(msg.getBystanders());
      return;
  }

  if (message instanceof OrbChangeNameMessage) {
      OrbChangeNameMessage msg = (OrbChangeNameMessage) message;

      usernameAlias = msg.getName();

      if (presenceInfoAdded) {
    presenceInfo.setUsernameAlias(usernameAlias);
          pm.requestChangeUsernameAlias(presenceInfo.getUsernameAlias());
      }

      nameTagComp.setNameTag(EventType.CHANGE_NAME, username, usernameAlias);
      return;
  }

  if (message instanceof OrbAttachMessage) {
      OrbAttachMessage msg = (OrbAttachMessage) message;

      attachOrb(msg.getHostCellID(), msg.isAttached());
      return;
  }

  if (message instanceof OrbAttachVirtualPlayerMessage) {
      OrbAttachVirtualPlayerMessage msg = (OrbAttachVirtualPlayerMessage) message;

      PresenceInfo info = pm.getPresenceInfo(msg.getHostCallID());

      if (info == null) {
    logger.warning("OrbAttachVirtualPlayerMessage, no presence info for callID "
        + msg.getHostCallID());
    return;
      }

      attachOrb(info.getCellID(), true);
      return;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbMuteCallMessage

  case CallStatus.DTMF_KEY:
      handleDtmfKey(status);
      break;
 
        case CallStatus.MUTED:
            sender.send(new OrbMuteCallMessage(orbCellID, true));
            break;

        case CallStatus.UNMUTED:
            sender.send(new OrbMuteCallMessage(orbCellID, false));
            break;

        case CallStatus.STARTEDSPEAKING:           
      if (isMuted && muteMessageSpoken == false) {
    muteMessageSpoken = true;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbMuteCallMessage

        + ":  " + e.getMessage());
      }

      isMuted = true;

      OrbMuteCallMessage orbMuteCallMessage = new OrbMuteCallMessage(orbCellID, true);

            // send to everybody cellChannel.send(cellChannel.getSessions(), orbMessage.getBytes());           
      try {
          call.playTreatment("tts:muted");
      } catch (IOException e) {
    logger.warning("unable to play muted treatment to " + call
        + ":  " + e.getMessage());
      }
      return;
  }

  if (dtmfKey.equals("3")) {
      try {
          call.mute(false);
      } catch (IOException e) {
    logger.warning("Unable to unmute call " + call
        + ":  " + e.getMessage());
      }

      isMuted = false;

      try {
          call.playTreatment("tts:un muted");
      } catch (IOException e) {
    logger.warning("unable to play unmuted treatment to " + call
        + ":  " + e.getMessage());
      }
      OrbMuteCallMessage orbUnmuteCallMessage = new OrbMuteCallMessage(orbCellID, false);

            // send to everybody cellChannel.send(cellChannel.getSessions(), orbMessage.getBytes());           
      return;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.