WebKit equivalent to Firefox's “moz-chunked-arraybuffer” xhr responseType

孤街浪徒 提交于 2019-11-29 01:14:08

My guess is that WebKit will get https://dvcs.w3.org/hg/streams-api/raw-file/tip/Overview.htm instead

Sorry to be the bearer of bad news, but to my knowledge there's not currently a webkit equivalent. Originally the chunked-arraybuffer response type arose from a concern similar to yours:

http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/0924.html

Additionally, MDN lists the responseType as only available in Firefox:

https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest

I think the solution to your issue is not having seen the full AudioContext object for html5.

http://www.html5rocks.com/en/tutorials/webaudio/intro/

You can decode audio data : decodeAudioData() You can play music via an AudioBuffer that can stream music to you via a web socket or just chunked http streaming.

When you want to play a song you just call the playSound()

So the real answer is use the AudioContext and you'll be golden

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