使用HTML5音频标记发送自定义HTTP请求标头 [英] Send custom HTTP request header with HTML5 audio tag
本文介绍了使用HTML5音频标记发送自定义HTTP请求标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用HTML5音频标签发送自定义HTTP请求标头?我对发送HTTP Range标头特别感兴趣,因此webserver只会流式传输部分mp3文件。我无法在音频标签 API中找到解决方法。
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.
这篇关于使用HTML5音频标记发送自定义HTTP请求标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文