[media-source] More flexible error handling

dmlap has just created a new issue for 
https://github.com/w3c/media-source:

== More flexible error handling ==
It may be possible for app developers to transparently handle decode 
errors when the source material is available from redundant sources or
 at different quality levels. Currently, the append error algorithm 
dictates that the [end of stream algorithm is 
invoked](https://w3c.github.io/media-source/#sourcebuffer-append-error)
 unconditionally on decode errors. This triggers an error on the 
HTMLMediaElement and updates its state to indicate a fatal condition. 
Ideally, the app developer would have some opportunity to intercept 
decode errors,  prevent this condition from propagating to the Media 
Element, and provide alternate content at some point in the future. 
Maybe something as simple as `Event.preventDefault()`?

See https://github.com/w3c/media-source/issues/36

Received on Tuesday, 3 November 2015 23:43:37 UTC