From: Karel Tuma <karel.t...@gmail.com>
Date: Wed, 25 Apr 2012 07:05:54 -0700 (PDT)
Local: Wed, Apr 25 2012 10:05 am
Subject: Re: Loading streaming binary data with XHR ArrayBuffer
Hi,
Unfortunately, this is not possible with current XHR Level 2. Chunked/
http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/0741.html
Currently, responseText hacks (*BAD* idea for media streaming) are
NaCl can pass arraybuffers to javascript, or just share the sandboxed
//k
On Apr 21, 3:29 pm, Adam Malcontenti-Wilson <adman....@gmail.com>
> Hi,
> 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 > data. > 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
> Thanks,
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.
| ||||||||||||||