Playing WAV file in Chrome fails

百般思念 提交于 2021-01-28 08:47:04

问题


I'm writing web application where users can listen audio (WAV) files using soundmanager2. Application is running on Amazon micro instance, but static files are served from my university server. Everything seemed to work fine, but I encountered problem with playing audio from Chrome browser but ONLY when files are served from university server. The same file served from Amazon server works fine in all browsers. If you want to test I paste links bellow.

Amazon (APACHE) - works on all browsers:

http://54.213.28.46/1402773433419_test.WAV

University server (NGINX) - works well in Firefox, IE 11 and old Opera, doesn't work in Chrome and new Opera: http://bazamazak.uw.edu.pl/test.WAV

I don't have access to NGINX configuration files, but I can contact admins and suggest configuration change. Do You have any idea what could be the problem? I would be grateful for any suggestions.


回答1:


Thanks to hints from admins, I have managed to solve this problem. It occurred that file with lowercase extension works fine so changing test.WAV to test.wav fixed everything.



来源:https://stackoverflow.com/questions/24224312/playing-wav-file-in-chrome-fails

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