[Bug 27067] Define what to do when CDM crashes

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27067

--- Comment #7 from David Dorwin <ddorwin@google.com> ---
(In reply to Joe Steele from comment #6)
> (In reply to David Dorwin from comment #4)
> > This might be better phrased as "when the CDM fails or becomes
> > unresponsive." Since the CDM is a separate entity in the spec and many
> > implementations, this could be a real possibility. This should also cover
> > cases where the "context" is lost, such as on some mobile platforms when the
> > device goes to sleep.
> > 
> > For contrast/comparison: The HTML5 spec does not say what to do when a
> > hardware video decoder fails, but there is a generic mechanism for reporting
> > decode errors:
> >   MEDIA_ERR_DECODE (numeric value 3)
> >     An error of some description occurred while decoding the media resource,
> > after the resource was established to be usable.
> > 
> > We may want to identify a similar mechanism. For example, maybe the first
> > paragraph of the Session Close algorithm section should be broadened. The
> > Encrypted Block Encountered algorithm should already cover the behavior
> > resulting from the keys being unavailable.
> 
> I think the idea is right and I would expect both things to happen, i.e. a
> MEDIA_ERR_DECODE to be reported and the Session Close algorithm to run. The
> app could catch the error and respond appropriately then. 

Note that a MEDIA_ERR_DECODE would not occur in this case. The waiting for a
key path would be executed per my last sentence above.

> However we may need more. In some cases the MediaKeys object itself may no
> longer be valid. Currently we don't have a MediaKeys Close algorithm
> defined. I think we may need that as well, to inform the application that it
> needs to go through the Key System selection again.

We shouldn't over-engineer this corner case. It seems unlikely that
applications would bother listening for such an event on MediaKeys anyway.

However, we could have createSession() reject the promise with
"InvalidStateError". If all the sessions are closed and you can't create a new
session, something is clearly wrong with the MediaKeys.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 20 October 2014 22:43:22 UTC