[MSE] Inconsistent error reporting for appendBuffer/appendStream

Hi,

While looking at the error handling of various types of SourceBuffer
appends, I noticed the observable events when an error occurs in
appendBuffer is as follows:

For buffer full error:
- throw QUOTA_EXCEEDED_ERR

For segment parser loop algorithm errors:
- updatestart -> SourceBuffer
- [endOfStream algorithm runs with error == "decode"]
- sourceended -> MediaSource
- error -> HTMLMediaElement (depending on element's readyState)

And for appendStream is as follows, for stream read or buffer full errors:
- updatestart -> SourceBuffer
- error -> SourceBuffer
- updateend -> SourceBuffer

And the same as appendBuffer for segment parser loop algorithm errors.

Is it intentional that only appendStream uses 3.5.3 Append Error Algorithm?
The error event as described in the event summary doesn't seem to be
specific to streams.

Thanks,
-mjg

Received on Friday, 9 May 2014 03:20:44 UTC