com.google.android.exoplayer2.drm.ExoMediaDrm Java Examples
The following examples show how to use
com.google.android.exoplayer2.drm.ExoMediaDrm.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LocalDrmSessionManager.java From no-player with Apache License 2.0 | 5 votes |
LocalDrmSessionManager(KeySetId keySetIdToRestore, ExoMediaDrm<FrameworkMediaCrypto> mediaDrm, UUID drmScheme, Handler handler, DefaultDrmSessionEventListener eventListener) { this.keySetIdToRestore = keySetIdToRestore; this.mediaDrm = mediaDrm; this.eventListener = eventListener; this.drmScheme = drmScheme; this.handler = handler; }
Example #2
Source File: CustomDrmCallback.java From ExoPlayer-Offline with Apache License 2.0 | 4 votes |
@Override public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest provisionRequest) throws Exception { String url = provisionRequest.getDefaultUrl() + "&signedRequest=" + new String(provisionRequest.getData()); return executePost(url, null, null); }
Example #3
Source File: ProvisioningModularDrmCallback.java From no-player with Apache License 2.0 | 4 votes |
@Override public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request) throws Exception { return provisionExecutor.execute(new ModularDrmProvisionRequest(request.getDefaultUrl(), request.getData())); }
Example #4
Source File: ProvisioningModularDrmCallback.java From no-player with Apache License 2.0 | 4 votes |
@Override public byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request) throws Exception { return streamingModularDrm.executeKeyRequest(new ModularDrmKeyRequest(request.getLicenseServerUrl(), request.getData())); }
Example #5
Source File: ExoMediaPlayer.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request) throws Exception { return drmCallback != null ? drmCallback.executeProvisionRequest(uuid, request) : new byte[0]; }
Example #6
Source File: ExoMediaPlayer.java From ExoMedia with Apache License 2.0 | 4 votes |
@Override public byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request) throws Exception { return drmCallback != null ? drmCallback.executeKeyRequest(uuid, request) : new byte[0]; }