-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide the license XHR object or fetch response with KEY_SYSTEM_LICENSE_REQUEST_FAILED error data #4538
Labels
Milestone
Comments
robwalch
added a commit
that referenced
this issue
Sep 16, 2022
robwalch
added a commit
that referenced
this issue
Sep 17, 2022
robwalch
added a commit
that referenced
this issue
Sep 22, 2022
robwalch
added a commit
that referenced
this issue
Sep 23, 2022
robwalch
added a commit
that referenced
this issue
Sep 24, 2022
robwalch
added a commit
that referenced
this issue
Sep 24, 2022
robwalch
added a commit
that referenced
this issue
Sep 27, 2022
robwalch
added a commit
that referenced
this issue
Sep 28, 2022
robwalch
added a commit
that referenced
this issue
Oct 5, 2022
robwalch
added a commit
that referenced
this issue
Oct 10, 2022
robwalch
added a commit
that referenced
this issue
Oct 20, 2022
robwalch
added a commit
that referenced
this issue
Oct 25, 2022
robwalch
added a commit
that referenced
this issue
Oct 27, 2022
robwalch
added a commit
that referenced
this issue
Nov 5, 2022
robwalch
added a commit
that referenced
this issue
Nov 17, 2022
robwalch
added a commit
that referenced
this issue
Dec 10, 2022
robwalch
added a commit
that referenced
this issue
Dec 15, 2022
* Add support for com.apple.fps keySystem * Improve support for DRM key-systems and key handling Resolves #2833 #2737 #4318 #4538 * Update README `licenseXhrSetup` example * Update api-extractor markdown * Attach CDM on start when even when initial fragments do not have a key associated with them * Handle expired key status correctly * Map key-sessions by key ID and log key ID more often than URI * Support "clear-lead" key-session creation without new config * Emit and handle FRAG_PARSING_ERROR from transmuxers (#5018) * Emit and handle FRAG_PARSING_ERROR from transmuxers Related to #5011 * Switch levels on Key and Fragment parsing errors or escalate to fatal error * Route all key-system errors to `onFragmentOrKeyLoadError` * Populate EMEKeyError.err for better demo error logging * Remove `useEmeEncryptedEvent` and mark `widevineLicenseUrl` as deprecated in API.md * Add support for EXT-X-SESSION-KEY tags (for key-system access on manifest loaded) #4927 * Throw before licenseXhrSetup if key was removed * Make key session promise chain more consice * Stop on fatal key system errors * Only request access to key-systems for keys matching those found in the config one at time (to avoid gaining access to WV and PR on Edge) * Modify key-system helpers so that it's easier to support additional key-system strings * Add undocumented `generateRequest` ("Content ID") filter Co-authored-by: Vincent Valot <[email protected]>
This is available in v1.3.0-beta.1. |
Repository owner
moved this from In Progress
to Done
in EME and Content Protection (DRM)
Dec 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Some DRM servers provide error details in non-2xx responses that may be useful to applications for error handling and retry logic, especially for applications that already wrap the license request/response flow with custom logic. In my case, our license server may indicate that one of several tokens sent in the request body needs to be refreshed but the error is otherwise recoverable.
I acknowledge that this is solve-able if you are wrapping the license request with a
licenseXhrSetup
callback, but it makes error handling a bit clumsier than it needs to be.Describe the solution you'd like
Pass the xhr object as part of the error data when a
KEY_SYSTEM_LICENSE_REQUEST_FAILED
error is triggered.Additional context
No response
The text was updated successfully, but these errors were encountered: