The sound is not playing for received messages when the chat with the sender has focus. This appears to be cause by the fact that the onInit event of the im_flash_player_listener object is not firing and therefore the property position is not being set to 0. Instead of using the onInit event, I just directly set the value of position to 0. I'm not sure why this object is used. Couldn't you just use the Drupal settings value in the play_sound function?

Comments

pahariwalla’s picture

hmmm... i'll have to take a look because I have absolutely no recollection of how I made the whole sound thing work .. other than it was a royal pain ;-) I also think that you have a unique situation? i.e. you aren't using clean urls ( #653104: Seems to expect using Clean URLs is okay and you've had to made some changes to your javascript. I haven't looked into any of this yet but hopefully will be able to withing a couple days.

I appreciate your debugging and fixing efforts and hope to be able to use them in fixes so this module works for more people. I'm interested to know what specifically calls for these mods, because it appears that most people are not having any of these problems, and I don't want to break something for anyone else while I try to make it more robust.

Thanks again.

pahariwalla’s picture

Issue tags: +sound

I've created a new issue that I'll use to post the most recent fixes to the sound alert support. It also contains instructions for ow to set it up. Please see #755834: Most recent sound alert status and use that ticket for any future comments on sound alerts. Thanks.

pahariwalla’s picture

Status: Active » Closed (duplicate)