Java 类com.google.android.exoplayer2.drm.ExoMediaDrm 实例源码

项目:no-player    文件:LocalDrmSessionManager.java   
LocalDrmSessionManager(KeySetId keySetIdToRestore,
                       ExoMediaDrm<FrameworkMediaCrypto> mediaDrm,
                       UUID drmScheme,
                       Handler handler,
                       DefaultDrmSessionManager.EventListener eventListener) {
    this.keySetIdToRestore = keySetIdToRestore;
    this.mediaDrm = mediaDrm;
    this.eventListener = eventListener;
    this.drmScheme = drmScheme;
    this.handler = handler;
}
项目:ExoPlayer-Offline    文件:CustomDrmCallback.java   
@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);
}
项目:no-player    文件:ProvisioningModularDrmCallback.java   
@Override
public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request) throws Exception {
    return provisionExecutor.execute(new ModularDrmProvisionRequest(request.getDefaultUrl(), request.getData()));
}
项目:no-player    文件:ProvisioningModularDrmCallback.java   
@Override
public byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request) throws Exception {
    return streamingModularDrm.executeKeyRequest(new ModularDrmKeyRequest(request.getDefaultUrl(), request.getData()));
}
项目:ExoMedia    文件:ExoMediaPlayer.java   
@Override
public byte[] executeProvisionRequest(UUID uuid, ExoMediaDrm.ProvisionRequest request) throws Exception {
    return drmCallback != null ? drmCallback.executeProvisionRequest(uuid, request) : new byte[0];
}
项目:ExoMedia    文件:ExoMediaPlayer.java   
@Override
public byte[] executeKeyRequest(UUID uuid, ExoMediaDrm.KeyRequest request) throws Exception {
    return drmCallback != null ? drmCallback.executeKeyRequest(uuid, request) : new byte[0];
}