Package com.allen_sauer.gwt.voices.client

Examples of com.allen_sauer.gwt.voices.client.Sound.play()


      public void onMessageReceived(XmppMessage message)
      {
        SoundController soundController = new SoundController();
        Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
            "sound/im.wav");
        sound.play();
       
        addMessage(message.getFromID().getResource(), message.getBody(),false);
       
        RoomChatWindow win = RoomChatWindow.get(jid);
        if(!win.isVisible())
View Full Code Here


     }

     SoundController soundController = new SoundController();
     Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
         "sound/im_send.wav");
     sound.play();
    
     XmppVCard selfv = JabberApp.instance().getSelfVCard();
     String nick = XmppID.parseId(JabberApp.instance().getSession().getUser().getID()).toStringNoResource();
     if(selfv!=null)
     {
View Full Code Here

     }

     SoundController soundController = new SoundController();
     Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
         "sound/im_send.wav");
     sound.play();
    
     XmppVCard selfv = JabberApp.instance().getSelfVCard();
     String nick = XmppID.parseId(JabberApp.instance().getSession().getUser().getID()).toStringNoResource();
     if(selfv!=null)
     {
View Full Code Here

        ChatWindow window = ChatWindow.openChat(message.getFromID());
       
        SoundController soundController = new SoundController();
        Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
            "sound/im.wav");
        sound.play();
       
        window.addMessage(getContactNick(message.getFromID().toStringNoResource()), message.getBody(),false);
      }
      public void onMessageSent(XmppMessage message)
      {
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.