Server does not read ogg file

时间秒杀一切 提交于 2019-12-12 02:57:59

问题


I am trying to play audio with HTML5 audio tag; reading different articles made me aware that Firefox does not play mp3, but plays ogg file so I linked two files to make it compatible with Firefox: Here's y code:

<!DOCTYPE html>
   <html>
      <head>
         <meta charset="utf-8">
         <title>Audio Player</title>
      </head>
   <body>
      <audio id="Mp3Me" autoplay autobuffer controls>
         <source src="audio/audio.mp3">
         <source src="audio/audio.ogg">
      </audio>
   </body>
</html>

I have two separate servers, the first one can read ogg audio file but the other one does not. The server that reads the file allows me to download the ogg file when I try to access it by editing the address page of my browser, but with my other browser, this is what it displays:

Please provide me sources to fix this problem.

来源:https://stackoverflow.com/questions/16341933/server-does-not-read-ogg-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!