Hi there,
I am having issues with the sound notification. For my purposes, the sound should play at all times and not only when the chat window is currently "active".
I have located the following lines in pfcclient.js (~990):
if (!this.detectactivity.isActive() && pfc_notify_window)
this.gui.notifyWindow();
and changed them to:
if (pfc_notify_window && sender != this.nickname) {
clearTimeout(this.timeout);
this.gui.notifyWindow();
var delay = this.calcDelay();
this.timeout = setTimeout('pfc.updateChat(true)', delay);
this.timeout_time = new Date().getTime() + delay;
}
I also added some debugging code to display when the notifyWindow() method is called.
From my test I can see that the chang4es work as expected EXCEPT that:
- if the mouse cursor is somewhere within the main chat box (that's just the DIV with class="pfc_content), the above code is executed, but no sound is produced/heard
- there are still times when the sound playing is somehow interrupted half-way to the point of not being audible (This was reduced a lot by the above code stopping the timeout to update the chat)
Can anyone help or at least point me in the right direction?
Sorry, the server is not publicly available right now, but I could open it up if need be.
Thanks a lot