[webkit-dev] Request for position: EME MediaKeySession Closed Reason

Xiaohan Wang (王消寒) xhwang at chromium.org
Tue Jun 8 11:36:10 PDT 2021

This is a request for WebKit's position on the "EME MediaKeySession Closed
Reason" proposal:


   - W3C EME spec issue/explainer:
   - W3C EME spec Pull Request:
   - Previous Media Working Group meeting discussion on this topic
   (with Jer Noble):


A MediaKeySessionClosedReason is proposed to indicate the reason for EME
MediaKeySession closure, and the `closed` attribute would return a
`Promise<MediaKeySessionClosedReason>` instead of the current


The current EME spec says "the CDM may close a session at any point, such
as when the session is no longer needed or when system resources are lost".
However, there's no way to specify the exact reason for session closure. In
some cases, this is part of normal user flow, e.g. user close laptop lid to
put the device into sleep mode, where the player should resume playback. In
some other cases, this is due to some unrecoverable fatal error.

This proposal updates the `closed` attribute on MediaKeySession to provide
a MediaKeySessionClosedReason so that the JavaScript player can handle
session closure differently based on the reasons.

*Contact email*
xhwang at chromium.org

Looking forward to your feedback!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20210608/63ffba25/attachment.htm>

More information about the webkit-dev mailing list