Skip to content

Instantly share code, notes, and snippets.

@TakuSemba
Last active April 15, 2019 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakuSemba/70d40be9eb09bde01e33841adeb3a087 to your computer and use it in GitHub Desktop.
Save TakuSemba/70d40be9eb09bde01e33841adeb3a087 to your computer and use it in GitHub Desktop.
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