port sound notifications to jQuery plugin
| Project: | Chat Room |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | justinrandell |
| Status: | active |
Jump to:
There is a feature of the Chatroom module that is not working. There is a 'Alert me if new messages are received.' checkbox but no sound plays even when it is checked.
The admin user sees the following error message:
soundManager.initComplete(): calling soundManager.onerror()
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Disabling all functions - future calls will return false.
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document load.
Possible causes: Flash version under 8, no support, or Flash security denying JS-Flash communication.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.beginDelayedInit(): Document loaded
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load ./soundmanager2.swf
-- SoundManager 2 V2.76a.20080808 (AS2/Flash 8) --
This is drupal 6, and ChatRoom 1.0-beta2
We suspect there could be some kind of js conflict, but are having trouble chasing it down. Has anyone else run into this problem? We are using the admin menu module which has been known to cause some other js weirdness in our experience, though not in a while.

#1
I have the same problem! Any advice?
#2
I have the same problem. Any advice?
#3
Please help, I am having same issue
#4
Please help, I am having same issue,
Other related
http://drupal.org/node/359750
#5
The same here ...
#6
Same here! At the very least, I need to figure out how to stop the debug code from showing up to users.
#7
At #6 I did a quick search and found that soundmanager2.js has a line (line number 25) saying
self._writeDebug('soundManager: Getting impatient, still waiting for Flash.. ;)');Using that I identified all the other instances of self._writeDebug and I guess commenting out all of them is the quick and dirty way to get rid of the messages. I guess there is a way of turning debug on/off the line (line number 16with:
this.debugMode = trueseems a very likely candidate; you could try to just comment out that line first, and see. I'm sure it is there just for the beta release and is supposed to be turned off at a later time.
#8
subscribing & updating to beta3
#9
please update to beta4 - it won't fix the sound issue, but it has a few more bug fixes.
#10
just did, thanks :)
#11
i've committed a fix to turn off the debug, so update to the latest CVS to get that fix. i don't know anything about the soundManager code, so i'd love some help from anyone who was around when that got committed.
#12
i'm going to port the sound stuff to use a jquery plugin, and just junk the old, broken stuff.
any volunteers to help with this?