I try to play sounds with "Howler.js", but it's not working in FF in every other browser it works.
To test if it is a problem with the sound files I opened the directory containing the files with the browser.
I have a '.mp3' file, a '.ogg' file, a '.wav' and a '.webm' file.
In FF none of them are working, FF only gives me the message "Video could not be played, because the file is broken.".
Now I'm totally confused, because other browsers don't complain about the audio files.
I appreciate any help.
Found a solution myself. The problem was that I started the Code via node and gulp, which resulted in wrong mime types, which was a problem for Firefox. When the application is started via apache, the mime types are correct and everythings working fine.
Related
Sorry for the ambiguous title, I just couldn't find a better description of this bug.
One of our users had problems with the site, and saw a Syntax Error in one of the Javascript files in the dev console. When they opened it, they saw it was corrupted:
They sent me the contents of the file (went directly to the URL and saved with Ctrl+S) and when I opened it with Sublime it seemed to be nulled-out (the binary is all zeros). This only happened to them and it doesn't seem to go away, even after a full restart. I initially thought it was just a corrupted response and Chrome cached the file, but even with Shift+F5 they are still getting the problem.
The user runs Chrome 64.0.3282.186
the server is running django on AWS.
Edit: The user says they have no Chrome extensions installed.
Edit II: They tried from Microsoft Edge and it works.
Is there a way to download a file with the filename in Safari using JavaScript/jQuery?
I've created an anchor element with a url that looks like this:
Download File
Unfortunately, the download attribute hasn't been implemented in Safari yet (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a). So when the file downloads in Safari (my version is 8), the file name is "unknown".
Is there a workaround so that when the file downloads in Safari (8+), it will have the filename?
I downloaded a file from dropbox in Safari and it worked fine, filename and all. How'd they do that??
I found a solution in case anyone runs across this problem. jQuery fileDownload works fine in Safari event though the developer doesn't officially list it as a supported and tested browser. https://github.com/johnculviner/jquery.fileDownload
I am currently working on a website that includes a musicplayer made with SoundJS.
I, myself, am using Google Chrome to test and debug my website, and it worked like a charm, but when I recently tested it in FireFox, I noticed this strange error.
When I hit the play button and the sound is being registered I get this error:
The buffer passed to decodeAudioData contains an unknown content type
The code I use in my javascript file to create the soundInstance:
'response' is a string containing the location of the .mp3 file (this all works perfectly in Chrome).
createjs.Sound.registerSound('uploads/songs/'+response,'song');
When I test this same piece of code with an 'ogg' file it works perfectly in FireFox.
I also heard from some people that it doesn't work in Safari too, but unfortunatly I am a windows user.
If you want to test it for yourself:
www.playmesome.be . Just hit the play button and it will keep on loading infinitely because of this error.
Thanks for reading!
there is a known issue with Firefox on windows that does not load all mp3 files properly, and therefore it is recommended that you load another supported file type first (such as ogg).
Hope that helps.
I'm having some major trouble with AppCache.
I've got a single page application (with real URLs using using Page.js and loading HTML from the server on page load, (dispatch: false)
It's running on Bode.js, in particular it's a Sails.js app.
I've got a manifest file in the HTML tag of the layout. The manifest file has been tested repeatedly and everything checks out. It works flawlessly in Chrome. Even in Safari, it shows up in the inspector correctly and has a list of the assets listed in the file. So far so good.
However, when offline, Safari fails to load anything but the HTML document itself. So I'm basically seeing just an unstyled list of headers. The console shows a bunch of 404s. So even though it's reading the manifest file correctly, it's not caching anything.
Firefox doesn't even detect the manifest file and just seems to working like it didn't exist.
Safari on iOS7 is behaving like Firefox and not showing anything, when offline.
Anyone with any bright ideas why this may be happening?
Got a bit of a weird issue. I am using Audio.js to play some audio files.
Across all platforms and all browsers everything works perfectly apart from Firefox for Mac. The files just do not want to play. They download OK and Audio.js outputs thats they have fully downloaded, but will not play. I have tried files uploaded to our cloud storage provider (they stream fine on all the other browsers), the same files served locally and a third party .ogg file found online.
Nothing.
Anyone had issues with .ogg files playing on Firefox for Mac? Would it be a files header issue? Anyone had issues with Audio.js having problems playing .ogg files in FF on a Mac?
From the docs, ogg vorbis files are not supported. Also, the implementation needs flash in Firefox to work it seems: kolber.github.io/audiojs
(Since your test-case works only in FF on Windows, and not FF on OSX):
FF on Windows can use OS-level MP3 implementation, whereas FF on OSX does not have access to the MP3 codec freely.. not sure if that's what's causing it, but it could be used for the feature detection in the library (as it is an OGG)