Skip to content
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

Make DrmSessionException constructor public to enable creating custom DrmSessionManager implementations. #2464

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

jschamburger
Copy link

I noticed that in the current dev-v2 branch it is not possible to implement a custom DrmSessionManager which implements the DrmSession interface in a reasonable way.
The problem is that DrmSessionException has a package-local constructor, which means that the implementation of DrmSession.onError can't return anything other than null (unless, of course, the implementation would be in the same package, like DefaultDrmSessionManager).

@ojw28
Copy link
Contributor

ojw28 commented Feb 16, 2017

Heh, this is an oversight. Thanks! We'll merge shortly.

@jschamburger
Copy link
Author

Anytime. :-)
I stumbled upon this when I was trying your fix for #1865 which caused trouble with my DrmSessionManager based on the v2.1.1 StreamingDrmSessionManager. Btw, the fix is working great.

@ojw28 ojw28 merged commit 26f4e52 into google:dev-v2 Feb 16, 2017
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants