eusoulevi / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

Play a sound when a new incoming chat starts #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open two browsers with emite in each
2. Start a chat with the other window
3. The message arrives

What is the expected output? What do you see instead?
i would like to hear something in the other window

Original issue reported on code.google.com by danigb on 29 Apr 2008 at 12:41

GoogleCodeExporter commented 9 years ago
We need a method like WindowListener.onFocusLost(), or something similar... 

For the moment I added support for input focus lost, then if you are using 
Emite with
other application (like kune), if the input lost the focus (you are not 
writing), and
a new message arrives, emiteui sounds.

But this don't resolve this issue, because you can change the window/tab in the
browser without lost the focus in the input panel.

Original comment by vruiz.ju...@gmail.com on 30 Apr 2008 at 12:34

GoogleCodeExporter commented 9 years ago
Implementing XEP-0085 in UI, I see that lost of input focus works well also 
when you
change to other application different than the browser, or other browser tab. 
Only is
necessary to eliminate old isActive boolean (in ChatUIPresenter) and use 
directly the
chatState. For 0.3.0.

Original comment by vruiz.ju...@gmail.com on 17 May 2008 at 8:13

GoogleCodeExporter commented 9 years ago
This works well with ChatState and ChatCreatedByMe ...  the only thing is to do 
some
clean in ChatUIPresenter in the future (adding ChatState support to MUCRooms)

Original comment by vruiz.ju...@gmail.com on 28 May 2008 at 8:32