Firefox won't play .WAV files using the HTML5 <audio> tag?

前端 未结 4 765
故里飘歌
故里飘歌 2020-12-06 07:11

I\'m building a page that will allow a user to upload an MP3 file. That MP3 file is converted in the back end to a .WAV file using LAME.

The lame execution script i

相关标签:
4条回答
  • 2020-12-06 07:50

    What's the bit depth on your WAV files? Firefox supports 8-bit and 16-bit PCM, but not other bit depths (12, 20, 24, 32).

    0 讨论(0)
  • 2020-12-06 07:56

    Firefox expects one of the following codecs to be returned as the MIME type:

    • audio/wave (preferred)
    • audio/wav
    • audio/x-wav
    • audio/x-pn-wav

    Make sure your server returns one of those MIME types for wav files.

    0 讨论(0)
  • 2020-12-06 08:00

    This is bug in Firefox - you need to list the MP3 format source to the end, and it will work.

    0 讨论(0)
  • 2020-12-06 08:04

    In addition to the bit depth issue, Firefox HTML5 audio apparently does not play back 6-channel audio, either. For my app, I needed to re-rip to change both bit depth and number of channels (e.g. sox inFile -b 16 -c 2 outFile otherParams).

    0 讨论(0)
提交回复
热议问题