w3c / encrypted-media

Encrypted Media Extensions
https://w3c.github.io/encrypted-media/
Other
180 stars 80 forks source link

Add reason for session close #487

Closed joeyparrish closed 3 years ago

joeyparrish commented 3 years ago

This adds a MediaKeySessionCloseReason enum, values of which are used to resolve the closed Promise on MediaKeySession. This gives applications additional information about the reasons for a session closure, which should help applications make better decisions when a session is closed by the CDM.

Closes #473


Preview | Diff

joeyparrish commented 3 years ago

@gregwfreedman, please review when you have time.