• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

No Sound Notification

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
6 posts • Page 1 of 1

Postby csauve » Fri Dec 03, 2010 8:03 pm

Hi all,

I have just installed php free chat. All work fine except the notification sound.
No notification sound is heard when new user connect or when a new message is type/sent?

Version : 1.3
Theme used : default
Parameter : "startwithsound" is set to true


Thanks in advance!

Christian Sauve
csauve
New member
 
Posts: 2
Joined: Fri Dec 03, 2010 7:53 pm
Top

Postby bhootnath » Fri Dec 03, 2010 10:00 pm

can you at least provide URL of the instance in question so somebody can take a look at it?
bhootnath
Member
 
Posts: 13
Joined: Fri Nov 19, 2010 10:12 pm
Top

Postby csauve » Fri Dec 03, 2010 10:26 pm

Here's the URL : http://www.amr-rc.com/chat/

Thanks for the help!

Christian
csauve
New member
 
Posts: 2
Joined: Fri Dec 03, 2010 7:53 pm
Top

Postby bhootnath » Sat Dec 04, 2010 7:47 pm

the sound work just fine for me.. in case you missed it.. the notification sound only works if the the chat windows is not in focus.. and the notification sound does not work for users joining in or even other notices.. only messages..
for info.. i tested in chrome.. and IE8...
bhootnath
Member
 
Posts: 13
Joined: Fri Nov 19, 2010 10:12 pm
Top

Postby sm8500 » Sat Jan 14, 2012 5:00 pm

bhootnath wrote:... the notification sound only works if the the chat windows is not in focus...

I'm suffering from the same issue, that sound notification happens only when the chat window is not in focus.
Problem is: our users watch a streamed video and having the chat open in parallel. So if the chat is in focus, they do not get notified accustically when we send them news while they are watching the video in the other window.

Can someone give me a hint where I find the code to change this behavior, so that sound notifications happens independent of the current focus?

Thanks in advance.
sm
sm8500
New member
 
Posts: 1
Joined: Sat Jan 14, 2012 4:26 pm
Top

Postby ozled » Sun Feb 12, 2012 7:20 pm

I've managed to solve this issue, partially, by changing the script pfcclient.js in the function handleComingRequest (around line 986) from:
<code>
iif (!this.detectactivity.isActive() && pfc_notify_window)
</code>
to:
<code>
iif (pfc_notify_window && sender != this.nickname)
</code>
This produces a sound notification whether the chat window is on focus or not but...
if the mouse cursor is in the main chat window (where the chat messages appear) the sound is not played even though the function gui.notifyWindow() is called as expected.
If the mouse cursor is elsewhere within the browser window (e.g. in the user box), the saound is played correctly.
ozled
New member
 
Posts: 7
Joined: Sat Dec 10, 2011 6:14 pm
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 13 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub