Package org.jdesktop.wonderland.client.softphone

Examples of org.jdesktop.wonderland.client.softphone.SoftphoneControl


        speakerMeter.setMaxValue(1D);
        speakerMeter.setWarningValue(speakerWarningLimit);
        speakerMeter.setVisible(true);
        speakerMeterPanel.add(speakerMeter);

        SoftphoneControl sc = SoftphoneControlImpl.getInstance();
        sc.addSoftphoneListener(this);
        sc.addMicrophoneInfoListener(this);
        sc.addSpeakerInfoListener(this);

        client.addDisconnectListener(this);
    }
View Full Code Here


        startMicVuMeter(false);
        startSpeakerVuMeter(false);
    }

    public void startMicVuMeter(final boolean startVuMeter) {
        SoftphoneControl sc = SoftphoneControlImpl.getInstance();

  boolean isConnected = false;

  try {
      isConnected = sc.isConnected();
  } catch (IOException e) {
  }

  if (isConnected) {
            if (startVuMeter) {
                try {
                    sc.sendCommandToSoftphone("getMicrophoneVolume");
                } catch (IOException e) {
                    LOGGER.log(Level.WARNING,
                        "Unable to get Microphone volume", e);
                }
      }

      try {
                sc.startMicVuMeter(startVuMeter);
      } catch (IOException e) {
          LOGGER.log(Level.WARNING,
        "Unable to start mic VU meter:  " + e.getMessage());
      }
  }
View Full Code Here

            }
        });
    }

    public void startSpeakerVuMeter(final boolean startVuMeter) {
        SoftphoneControl sc = SoftphoneControlImpl.getInstance();

  try {
      if (sc.isConnected() == false) {
    return;
      }
  } catch (IOException e) {
      return;
  }

        if (startVuMeter) {
            try {
                sc.sendCommandToSoftphone("getSpeakerVolume");
            } catch (IOException e) {
                LOGGER.log(Level.WARNING,
                        "Unable to get speaker volume", e);
            }
        }

  try {
      sc.startSpeakerVuMeter(startVuMeter);
  } catch (IOException e) {
      LOGGER.log(Level.WARNING,
    "Unable to start speaker VU Meter:  " + e.getMessage());
  }
    }
View Full Code Here

  animateCallAnswer();

        session.send(client, new VoiceChatJoinMessage(group, myPresenceInfo,
            new PresenceInfo[0], chatType));

        SoftphoneControl sc = SoftphoneControlImpl.getInstance();

        String callID = sc.getCallID();

        PresenceInfo presenceInfo = new PresenceInfo(null, null,
      new WonderlandIdentity(name, name, null), callID);

        pm.addLocalPresenceInfo(presenceInfo);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.softphone.SoftphoneControl

Copyright © 2018 www.massapicom. 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.