I am using SoundJS lib to play various mp3/wav files in my web app, however I added a new file but it didn't work at all in FireFox while it is working fine on Chrome. I tried wav/mp3/ogg encoding but none worked with me. I googled around a little bit but I couldn't find any working solution. P.S: I have other mp3 files which are working fine in FireFox.
Updated Info:
As response to Dexter I have the following updates:
I am using Firefox 45.0 on Ubuntu 14.04
The console of the browser is:
The buffer passed to decodeAudioData contains an unknown content type.
EncodingError: The given encoding is not supported.
I tried to use the "mp3info" utility to check the encoding of the file but I got: background_music.mp3 does not have an ID3 1.x tag.
using the "file" utiility I got this: background_music.mp3: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
P.S: The original file is of "wav" format but using it in FireFox didn't work so I converted it to "mp3" format using "ffmpeg" utility through the command:
ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 2 background_music.mp3
This is the output of the command file input.wav
RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz
Update2:
I forgot to state that I have other mp3 files that are already working throght FireFox and running the "file" command to one of the files produces the following data:
file2.mp3: Audio file with ID3 version 2.3.0, contains: MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo