我正在使用HTML5音频播放器,当我从与HTML页面相同的主机上服务器.ogg文件时,一切工作正常。当我将ogg文件放在cdn中时,它会失败,错误代码是media-err_-src_-not-upported
例如,这个很好用
<audio src="/song.ogg" id="player">
Your browser does not support the <code>audio</code> element.
</audio>
但这失败了,上面的错误代码
<audio src="http://mycdn.com/song.ogg" id="player">
Your browser does not support the <code>audio</code> element.
</audio>
失败的音频文件的头看起来像这样(这是来自另一个显示相同行为的ogg文件)
HTTP/1.1 200 OK
Server: CacheFlyServe v26b
Date: Sat, 13 Feb 2010 21:10:48 GMT
Content-Type: application/octet-stream
Connection: close
ETag: "c6ee7d86e808cc44bbd74a8db94a5aae"
X-CF1: fA.syd1:cf:cacheD.syd1-01
Content-Length: 2398477
Last-Modified: Sat, 13 Feb 2010 20:50:56 GMT
Accept-Ranges: bytes
X-Cache: MISS from deliveryD-syd1