在Chrome中播放WAV文件失败 [英] Playing WAV file in Chrome fails

查看:136
本文介绍了在Chrome中播放WAV文件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个Web应用程序,用户可以在其中使用soundmanager2收听音频(WAV)文件.应用程序正在Amazon微型实例上运行,但是静态文件是从我的大学服务器提供的.一切似乎都可以正常工作,但我遇到了从Chrome浏览器播放音频的问题,但仅在从大学服务器提供文件时才遇到问题.从Amazon服务器提供的相同文件在所有浏览器中都可以正常工作.如果要测试,请在下面粘贴链接.

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)-在所有浏览器上均可使用:

Amazon (APACHE) - works on all browsers:

http://54.213.28.46/1402773433419_test.WAV

大学服务器(NGINX)-在Firefox,IE 11和旧版Opera中运行良好,在Chrome和新版Opera中不运行: http://bazamazak.uw.edu.pl/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

我无权访问NGINX配置文件,但是我可以联系管理员并建议更改配置.您知道可能是什么问题吗?如果有任何建议,我将不胜感激.

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.

推荐答案

感谢管理员的提示,我已经设法解决了这个问题.发生了带有小写扩展名的文件可以正常工作的情况,因此将 test.WAV 更改为 test.wav 可以修复所有问题.

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.

这篇关于在Chrome中播放WAV文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆