I am trying to play an IceCast stream (MP3 streaming over HTTP) via the Web Audio API (not an audio
tag), support for recent browsers except IE is an unfortunate requirement.
All examples and projects I can find regarding this either use a XMLHttpRequest
to load a whole file (which won't work because the request will never be finished), or stream live user input (microphone) via createMediaStreamSource
.
How can I use the Web Audio API to create a sourceNode from a stream?
Here's a demo showing that indeed XMLHttpRequest can not be used to load binary streams: http://codepen.io/rrorg/pen/EyAmBa?editors=1010