Last active
April 15, 2019 09:15
-
-
Save TakuSemba/70d40be9eb09bde01e33841adeb3a087 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class SampleMediaDrmCallback implements MediaDrmCallback { | |
private final byte[] keyResponse = "..."; | |
@Override public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request) | |
throws IOException { | |
throw new UnsupportedOperationException(); | |
} | |
@Override public byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request) | |
throws Exception { | |
return keyResponse | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment