port sound notifications to jQuery plugin

GregoryHeller - July 13, 2009 - 19:19
Project:Chat Room
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:justinrandell
Status:active
Description

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

marioboy90 - August 16, 2009 - 22:26

I have the same problem! Any advice?

#2

marioboy90 - August 16, 2009 - 22:27

I have the same problem. Any advice?

#3

SuperContra - August 30, 2009 - 06:27

Please help, I am having same issue

#4

SuperContra - August 30, 2009 - 06:30

Please help, I am having same issue,

Other related

http://drupal.org/node/359750

#5

pku - September 4, 2009 - 14:22

The same here ...

#6

Curugon - September 8, 2009 - 18:56

Same here! At the very least, I need to figure out how to stop the debug code from showing up to users.

#7

pkej - September 11, 2009 - 10:27

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 = true

seems 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

adam_b - September 13, 2009 - 14:10
Version:6.x-1.0-beta2» 6.x-1.0-beta3

subscribing & updating to beta3

#9

justinrandell - September 13, 2009 - 14:38
Version:6.x-1.0-beta3» 6.x-1.0-beta4

please update to beta4 - it won't fix the sound issue, but it has a few more bug fixes.

#10

adam_b - September 13, 2009 - 14:48

just did, thanks :)

#11

justinrandell - September 13, 2009 - 15:27

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

justinrandell - October 28, 2009 - 10:36
Title:"Alert Me" audio notifications not working - problem with soundManager» port sound notifications to jQuery plugin
Version:6.x-1.0-beta4» 6.x-2.x-dev
Category:bug report» task
Assigned to:Anonymous» justinrandell

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?

 
 

Drupal is a registered trademark of Dries Buytaert.