“Error: Unsupported audio type or invalid file path” for HTML5 Audio tag in Internet Explorer 10

后端 未结 1 1603
一生所求
一生所求 2021-01-12 10:55

I have the following html5 document with audio tag and a fallback to Flash for browsers that don\'t support it:



  

        
相关标签:
1条回答
  • 2021-01-12 11:31

    Your example works fine for me in IE10 on Windows 8.

    You should be aware that:

    • you should only need Ogg Vorbis and AAC (.m4a) to cover all browsers. The .wav and .mp3 won't help.
    • some formats have complicated sub-formats, like .wav files can contain MP3 audio, .m4a files can contain certain sample rates or bit depths that a particular system might not support, and .ogg files could contain video or other content. Most browsers don't support all sub-formats, so you should carefully check the exact sub-formats of every sound you use and make sure they're supported. 16-bit 44.1KHz mono/stereo is almost always supported, so try not to deviate from that.
    0 讨论(0)
提交回复
热议问题