Unfortunately, this is not possible with current XHR Level 2. Chunked/
Currently, responseText hacks (*BAD* idea for media streaming) are
On Apr 21, 3:29 pm, Adam Malcontenti-Wilson <adman....@gmail.com>
> I've recently found that if you try to use the
> responseType="arraybuffer" property that the response property doesn't
> get populated until the actual file has finished loading, which poses
> a problem when I want to try and read data from a streaming binary
> source (e.g. such as a Shoutcast stream (although they may be other
> similar use-cases)).
> Progress events show me how much data has been downloaded but doesn't
> actually allow me to access any of it (that I can see). If I don't
> specify a responseType, I can use the responseText property which
> shows what it has read thus far, but this is almost useless for binary
> Is this a bug (e.g. simply not yet implemented in any major browser),
> or a lacking part of the specification? I notice that in the XHR spec,
> it defines the "response entity body" as "the fragment of the entity
> body of the response received so far" which means that I would have
> expected it to work as I've described, but it seems not to. Have I
> misinterpreted the spec in this way?
> P.S. Ideally for this use-case as it is infinite streaming, XHR might
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.