-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
How can we know if the license request was successful, and the CDM accepted the response? #1035
Comments
@joeyparrish Could you take a look to see if we should add the feature? |
I see no reason we couldn't add an informative event for this. Adding to v2.3, with the caveat that it will skip to v2.4 if we don't have time. |
@joeyparrish I can make a PR for this since I'm supposed to deliver this feature, not only for Shaka but also for our Safari player implementation. Here's what I had in mind, can you advise:
Only thing I noticed was the signature for |
Yes, absolutely. DrmEngine is not directly accessible to apps through our exported API, so there's no compatibility concerns there. A Player interface object makes sense. |
I'm not sure I like the event name "keysessionupdate", though. It doesn't match current EME terminology, as we don't call them "key sessions". How about "licenseupdate", "drmsessionupdate", or "drmupdate"? |
I'm about done the work, and running the tests now I see this fail on master:
This is without my changes. On the branch with my changes, in my most recent test run, I see this failure too:
But I've run the tests a few times and I think I see varying behaviour out of some integration tests. Do you usually see 100% success rate across browsers for integration tests? |
Nevermind I see you just posted about this in #1048. |
Yeah, I have the Safari 11 issues fixed locally with a new polyfill, but I am still in the process of writing a bug report to Apple about the |
New MediaSource bug filed against Safari 11: https://bugs.webkit.org/show_bug.cgi?id=177884 |
Cherry-picked to v2.2.3. |
I have a requirement to signal to our downstream clients that the license request (and CDM update) was successful and we are able to play content.
Could Shaka signal that the call to session.update() was fulfilled?
The text was updated successfully, but these errors were encountered: