libvorbis.js icon indicating copy to clipboard operation
libvorbis.js copied to clipboard

Question about the example.

Open fcostarodrigo opened this issue 9 years ago • 1 comments

Found this question on stack overflow about the example and I could not answer it myself.

http://stackoverflow.com/questions/38187588/why-would-someone-make-an-xhr-to-an-url-generated-by-url-createobjecturl

Maybe we need a comment in the code explaining it?

fcostarodrigo avatar Jul 13 '16 14:07 fcostarodrigo

I did that because I encountered a bug in Chrome for Android where it wouldn't want to play the audio from the URL generated from the encoded audio blob directly. The XHR call was simply the workaround that I could come up with at the moment.

More: https://bugs.chromium.org/p/chromium/issues/detail?id=227476#c21

It looks like since my comment on Feb 2, the bug has been fixed as of Chrome 50. I have not checked.

I will close this issue once the example source is fixed either by commenting the weird workaround, or getting rid of it because it is no longer needed.

PS: I did comment this workaround in an old version of the library here.

Garciat avatar Jul 13 '16 15:07 Garciat