Send custom HTTP request header with HTML5 audio tag

Is it possible to send custom HTTP request headers using the HTML5 audio tag? I'm especially interested in sending a HTTP Range header, so the webserver will only stream parts of an mp3 file. I couldn't find a way to do that in the audio tag api.


Not according to the spec, you can't. Audio tag is actually very inflexible.

链接地址: http://www.djcxy.com/p/10434.html

上一篇: JS原型vs封闭

下一篇: 使用HTML5音频标签发送自定义HTTP请求标头