PDA

View Full Version : Problem NO Sound in MAC Firefox


webstixdev
02-11-2009, 12:34 AM
Hi!

I have downloaded latest version of the Online timer.zip from
http://www.speedbagforum.com/timer.zip and extracted to a folder.

I tried to access the path of the folder through URL, Online timer worked perfect in Windows FIREFOX 3.0.6, IE6,IE7. Thanks a lot! but I can't hear sound in Mac Firefox. It is working fine in mac Safari :). I can't figure out where it is going wrong:confused:. Please do help me with this issue.

Technical Description.
Mac Version: OS X 10.4
Firefox Version: 3.0.1

Eagerly waiting for your response
WEBSTIX-DEV

Tim
02-11-2009, 07:43 PM
I'm not sure what might be wrong. I also have Mac OS X 10.4 , but using FireFox 3.0.6. It works ok for me, from the zip file.

When you unzipped all the files, can you confirm that all the audio files (.wav) were unzipped as well? Also are you opening the timer.html file?

Sorry I couldn't be of more help

webstixdev
02-12-2009, 12:11 AM
Thanks for you great Response.
Let me Explain my scenario in detail.
My Requirement
1. I need to place the sound files in folder say "media".
2. I need to place the html and js file in other folder say "timer"

media folder is in root say if my site name www.example.com then i will place my media files in www.example.com/media

timer folder is inside the site say
www.example.com/Inside_Page/modules/timer/timer.html

I need to call my media files for sound, what i did is just place the sound files in root(base) . The code recognized the sound files and played the sound in almost every browser but not in Mac Firefox.


Hope I have explained my Problem in detail.

Please Help me.
Webstix-DEV

Tim
02-12-2009, 08:11 AM
Ok, you are trying to re-use it on another site. Sorry, I can't help in that case, my policy is to require a fee for re-use. You can PM me if you are interested.

Please see here:
http://www.speedbagforum.com/forums/showthread.php?t=1300

webstixdev
03-17-2009, 01:39 AM
We have bought a License to add timer into our site. We are having problems in the Timer scripts, the problem is that we could not here the sound of the timer only in Mac Firefox.

Let me Explain the scenario in detail.
Requirement:
1. We need to place the sound files in folder say "media".
2. We need to place the html and js file in other folder say "timer"

For example if the domain name is "www.domainname.com" then path for the media and timer folder is "www.domainname.com/media" and "www.domainname.com/timer" respectively.

In other words, instead of having all the files in a single folder say "timer". we need to have hierarchy and we need to play a sound file using path and not calling the sound file directly from the root folder.



Please let us know about this ASAP.

Thanks
Webstix-DEV

Tim
03-17-2009, 01:07 PM
Hi, I will look into this tonight and get you an answer.

Tim

Tim
03-17-2009, 09:46 PM
We have bought a License to add timer into our site. We are having problems in the Timer scripts, the problem is that we could not here the sound of the timer only in Mac Firefox.

Let me Explain the scenario in detail.
Requirement:
1. We need to place the sound files in folder say "media".
2. We need to place the html and js file in other folder say "timer"

For example if the domain name is "www.domainname.com" then path for the media and timer folder is "www.domainname.com/media" and "www.domainname.com/timer" respectively.

In other words, instead of having all the files in a single folder say "timer". we need to have hierarchy and we need to play a sound file using path and not calling the sound file directly from the root folder.



Please let us know about this ASAP.

Thanks
Webstix-DEV

Change the embed2-6.js file as follows:

(add ../media/ to the front of each SRC attribute). I've confirmed this works in FireFox mac.

If you have more questions PM me your e-mail address.

document.write('<embed style="height:1; width:1;" src="../media/bell1.wav" autostart="false" id="bell1.wav" enablejavascript="true"/>');
document.write('<embed style="height:1; width:1;" src="../media/buzzer3_x.wav" autostart="false" id="buzzer3_x.wav" enablejavascript="true"/>');
document.write('<embed style="height:1; width:1;" src="../media/buzzer_x.wav" autostart="false" id="buzzer_x.wav" enablejavascript="true"/>');
document.write('<embed style="height:1; width:1;" src="../media/click_x.wav" autostart="false" id="click_x.wav" enablejavascript="true"/>');
document.write('<embed style="height:1; width:1;" src="../media/short1.wav" autostart="false" id="short1.wav" enablejavascript="true"/>');
document.write('<embed style="height:1; width:1;" src="../media/short2.wav" autostart="false" id="short2.wav" enablejavascript="true"/>');

webstixdev
03-31-2009, 12:20 AM
Hi!
Thank you for your code. I really appreciate your Help. The code works in all browser but not in MAC firefox. Let me explain the whole process again. I have built my site in Joomla1.5 and I am trying to incorporate the Online timer as component. I am successful in almost every browser but not in Mac Firefox. Please help me to solve this. You can ask me any technical question regarding Joomla and component conversion.

Thanks
-Ram

Tim
03-31-2009, 07:46 PM
Can you zip up your HTML and send to me? I really can't say what might be wrong without seeing the source code.

webstixdev
05-07-2009, 11:30 PM
Hi!

We are desperately waiting for your reply for the Sound issue in the Firefox browser in MAC. We are waiting to Launch our site, once you give us a solution. To remind you Lemme explain the problem. Using your Timer.zip we have converted it into a joomla component. It worked Perfect in almost every browser But not in MAC Firefox Sound is not working. We have tried Hard to understand what went wrong. Some ideas or some thoughts about the problem will be very helpful and We have mailed you the ZIP and Hope you have understood the Problem.

Please Help us!

Webstix-DEV

Tim
05-08-2009, 07:42 AM
Webstix,
I sent the following reply (via e-mail) to the programming e-mail address on April 8th:

"Thanks, that helped. I am able to duplicate the problem using FireFox 3 Mac. I see that it works fine with Safari. Unfortunately, it seems to be a browser specific bug with FireFox Mac (I do not have Windows so I didn't test with that). I don't know of a work around. Have you searched the web for any similar problems? I did but was not able to find any."

I think it is an obscure browser bug, or but with quicktime maybe. At any rate, I tried some workarounds, but could not get it to work. I do not know how this problem can be resolved. The sounds work fine on FF3 Mac on the regular timer page, but there must be a subtle difference in the Joomla implementation that makes a difference, unfortunately, I could not figure out what that difference is.

Tim

webstixdev
05-12-2009, 12:11 AM
Hi! TIM,

I know it is some wired behavior of browser, But is there any possible ways or a idea or a place where i can manipulate the code for making it working. Please Give me some thoughts. We are waiting for this.. This put us in a very bad shape:(. Please Do help.

Waiting for Your response
Webstix-DEV

Tim
05-12-2009, 08:10 PM
webstix, I actually worked on it for a very long time on my laptop with Joomla ... I tried everything I could think of , making the path shorter, putting the audio in the root directory, etc. etc. ,but could not get it to play. I never encountered any problems like this in the original timer, so I don't really know what a workaround would be, and I couldn't come up with any add'l ideas.

You could try an alterantive mechanism for playing sounds in FireFox Mac, such as the javascript shown here:

function soundPlay(which)
{
if (!soundEmbed)
{
soundEmbed = document.createElement("embed");
soundEmbed.setAttribute("src", "/snd/"+which+".wav");
soundEmbed.setAttribute("hidden", true);
soundEmbed.setAttribute("autostart", true);
}
else
{
document.body.removeChild(soundEmbed);
soundEmbed.removed = true;
soundEmbed = null;
soundEmbed = document.createElement("embed");
soundEmbed.setAttribute("src", "/snd/"+which+".wav");
soundEmbed.setAttribute("hidden", true);
soundEmbed.setAttribute("autostart", true);
}
soundEmbed.removed = false;
document.body.appendChild(soundEmbed);
}
I found the above snippet here: http://stackoverflow.com/questions/187098/cross-platform-cross-browser-way-to-play-sound-from-javascript

webstixdev
02-03-2010, 08:32 AM
webstix, I actually worked on it for a very long time on my laptop with Joomla ... I tried everything I could think of , making the path shorter, putting the audio in the root directory, etc. etc. ,but could not get it to play. I never encountered any problems like this in the original timer, so I don't really know what a workaround would be, and I couldn't come up with any add'l ideas.

You could try an alterantive mechanism for playing sounds in FireFox Mac, such as the javascript shown here:

function soundPlay(which)
{
if (!soundEmbed)
{
soundEmbed = document.createElement("embed");
soundEmbed.setAttribute("src", "/snd/"+which+".wav");
soundEmbed.setAttribute("hidden", true);
soundEmbed.setAttribute("autostart", true);
}
else
{
document.body.removeChild(soundEmbed);
soundEmbed.removed = true;
soundEmbed = null;
soundEmbed = document.createElement("embed");
soundEmbed.setAttribute("src", "/snd/"+which+".wav");
soundEmbed.setAttribute("hidden", true);
soundEmbed.setAttribute("autostart", true);
}
soundEmbed.removed = false;
document.body.appendChild(soundEmbed);
}
I found the above snippet here: http://stackoverflow.com/questions/187098/cross-platform-cross-browser-way-to-play-sound-from-javascript

I know there was a long gap between our conversion, Have you got any solution for our problem. I tried this code but it is not working for me.
Help me to solve this.
-Webstix-Dev

dancingeek
02-22-2010, 01:20 AM
Hello Tim,

I greatly appreciate your timer. I worked through some problems with it on Linux that might help this gentleman here. There is a very simple fix for some issues experienced with sound on non Windows/IE platforms. It is a matter of case sensitivity. Several of your wav files start off with a capital letter, ie "Gong.wav" while their counterparts in the javascript files are all lower case, ie "gong.wav."

Tim
02-24-2010, 08:28 PM
Hello Tim,

I greatly appreciate your timer. I worked through some problems with it on Linux that might help this gentleman here. There is a very simple fix for some issues experienced with sound on non Windows/IE platforms. It is a matter of case sensitivity. Several of your wav files start off with a capital letter, ie "Gong.wav" while their counterparts in the javascript files are all lower case, ie "gong.wav."

Interesting, as I used the timer on Ubuntu with FireFox for the longest time with never a problem. Can you clarify which browser you were using? And which flavor of linux. I certainly am hoping to get all the case issues straightened out in a future release, and simply make everything lower case.