예제 #1
0
        /**
         * ParticipantListener Override: Tutorial Handler - Sound Levels and Voice Status.
         * <ul>
         *   <li>Tutorial 5 - sound level property changes.</li>
         *   <li>Tutorial 6/7 - voice status property changes.</li>
         * </ul>
         *
         * @param obj
         *  The affected Participant.
         * @param prop
         *  The Participant property that triggered this event.
         * @param value
         *  Ignored.
         *
         * @since 1.0
         *
         * @see com.skype.api.ParticipantListener#onPropertyChange(com.skype.api.Participant, com.skype.api.Participant.Property, int, String)
         */
        public void onPropertyChange(com.skype.api.Participant obj, com.skype.api.Participant.Property prop, int value, String svalue)
        {
            Participant affectedParticipant = (Participant)obj;

            if (prop == Participant.Property.P_SOUND_LEVEL)
            {
                MySession.myConsole.printf("Sound level changed to %d for %s%n",
                                           affectedParticipant.getSoundLevel(),
                                           affectedParticipant.getIdentity());
            }
            else if (prop == Participant.Property.P_VOICE_STATUS)
            {
                Participant.VoiceStatus voiceStatus = affectedParticipant.getVoiceStatus();
                MySession.myConsole.printf("Voice status changed to %s for %s%n",
                                           voiceStatus,
                                           affectedParticipant.getIdentity());
            }
        }
예제 #2
0
 /**
  * ParticipantListener Override.
  *
  * @since 1.0
  *
  * @see com.skype.api.ParticipantListener#onIncomingDtmf(com.skype.api.Participant, com.skype.api.Participant.Dtmf)
  */
 public void onIncomingDtmf(com.skype.api.Participant obj, Participant.Dtmf dtmf)
 {
 }