Using GET to play a mp3 sound doesnt work on firefox

Discuss various technical topics not related to Mozilla.
supercain
Posts: 17
Joined: October 9th, 2016, 9:45 pm

Using GET to play a mp3 sound doesnt work on firefox

Post by supercain »

Hi,

I have a chat where you can click on a mp3 sound and play it for all the users but no sound is heard on firefox. You can see on the console that the request is being made:

GET XHR http://example.net/chat//hurry.mp3 [HTTP/1.1 304 Not Modified 160ms]

you can hear it perfectly on chrome and other browsers but not on firefox. Its not a problem with my installation of Firefox because everyone I asked seems to have this problem. Why is that?

Thank you.
User avatar
therube
Posts: 21698
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by therube »

Link to the chat?

Anything related noted in Error Console?

Any change if you restart in Safe Mode?
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by RobertJ »

.
Need a link, this works for me on FF59.0.1

Test mp3 sound

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
supercain
Posts: 17
Joined: October 9th, 2016, 9:45 pm

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by supercain »

Thanks for your help. I sent you both the link privately. I already tried safe mode and no use. Also, I dont see any error in the console. The only message I get is this

GET XHR http://example.net/chat//hurry.mp3 [HTTP/1.1 304 Not Modified 160ms]

also please notice its not an embedded player sound. Its sort of a link that when you click on it it plays the sound. Its javascript.
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by RobertJ »

.
Went to the link in both Chrome and FF and It wants me to register which I will not do.

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
supercain
Posts: 17
Joined: October 9th, 2016, 9:45 pm

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by supercain »

Sorry, seems like this site is truncating the link. I resent it so you can see it properly.
User avatar
therube
Posts: 21698
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by therube »

Is this what you're talking about, bottom right?
If so, no issue here, SeaMonkey 2.49.2 (akin to FF 52).

Image
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
therube
Posts: 21698
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by therube »

Might you have cache disabled in FF?
As a test, create a new, clean Profile & see what happens there.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by RobertJ »

.
This is very confusing
once you enter the room you will see a button that looks like a dialog box,
Don't know what you are referring to.

Also, my outbound firewall does not like the connection(s) that site wants to make.

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
supercain
Posts: 17
Joined: October 9th, 2016, 9:45 pm

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by supercain »

No, thats the player and it works fine. I mean this button here:

https://imgur.com/a/nFv3p

it says "send sound" and a list with various sends will appear. Click on any of them and it should sound. You can hear them on any other browser but firefox.

RobertJ, I assure you there is nothing wrong with the site. No virus whatsoever. I think its just that the site connects through port 35555 instead of the usual 80 but no other connection should be made unless you press the button to show your camera or mic which will show a prompt asking you if you allow the connection but you dont need to in order to do the test. Once you enter the chat just press the button from the image I am posting and select any sound from the list.

Thank you.
User avatar
RobertJ
Moderator
Posts: 10880
Joined: October 15th, 2003, 7:40 pm
Location: Chicago IL/Oconomowoc WI

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by RobertJ »

.
OK I found it. It does work in Chrome. However, it does not work in Firefox or Safari.

I tried it in FF with a blank fresh profile (no extensions or anything added and it still doesn't work).

Since it does not work with two common browsers I would guess there is some type of coding error with the site.

You might want to report the issue to the site administrator.

.
FF 92.0 - TB 78.13 - Mac OSX 10.13.6
supercain
Posts: 17
Joined: October 9th, 2016, 9:45 pm

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by supercain »

Unfortunately I am the site administrator but I cant debug the code because its too complicated and I didnt write it. But if it works on chrome and explorer it must be some kind of incompatibility issue rather than an error on the code. I am using the devtools console but I am not getting any error there that I can use as a hint to debug the code.
User avatar
LIMPET235
Moderator
Posts: 39933
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by LIMPET235 »

FWIW...
From that .MP3 link using Firefox v57, I get "The image cannot be displayed because it contains errors."
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
TheVisitor
Posts: 5469
Joined: May 13th, 2012, 10:43 am

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by TheVisitor »

LIMPET235 wrote:FWIW...
From that .MP3 link using Firefox v57, I get "The page cannot be displayed because it contains errors."
I get same on latest Nightly.. and no other browsers load the site either.. Chrome/IE 11, Edge.

I'm on win10 also maybe that's the difference... OP on win7
User avatar
LIMPET235
Moderator
Posts: 39933
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Using GET to play a mp3 sound doesnt work on firefox

Post by LIMPET235 »

I, also am on WIN7......running Firefox v20. (No vulnerability comments necessary.) :).
(Please, disregard the "modded" UA.)
> Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
BUT, When I used v20 & v57, that is the error message I received.
Any use running the site through the WC3 check site?
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
Post Reply