This bug is the result of discussions around Bug 16998
what does it mean by without surface media data to JS layer?
In common operation,
I will fetch data from XHR response by JS API, then using append() to append to SourceBuffer.
What are other means direct media data in XHR reponse to SourceBuffer?
(In reply to comment #0)
> This bug is the result of discussions around Bug 16998
> The goal is to allow appending data fetched from XMLHttpRequest without having
> progressively appended as it arrives.
I propose adding void appendStream(Stream stream) based on the Microsoft proposal , which was discussed recently in Webapps . We need to understand if and how this feature will be added to the W3C XHR spec.
I will add void append(Stream stm) and two events for appendcomplete and appenderror to the SourceBuffer object. Assigned to me.
Why did you add the maxSize attribute ? I don't see the use case where one would want to push XHR data limited to a size, except maybe if it has parsed the data in already, in which case the appendArrayBuffer will be used. I would rather see a maxDuration attribute.
(As a side note, I think the Stream object has a problem in that it keeps all data since the beginning of the download, which is not what we want here. More details here: http://lists.w3.org/Archives/Public/public-webapps/2013JanMar/0081.html)