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

项目:Exoplayer2Radio    文件:OfflineLicenseHelper.java   
private byte[] blockingKeyRequest(@Mode int licenseMode, byte[] offlineLicenseKeySetId,
    DrmInitData drmInitData) throws DrmSessionException {
  DrmSession<T> drmSession = openBlockingKeyRequest(licenseMode, offlineLicenseKeySetId,
      drmInitData);
  DrmSessionException error = drmSession.getError();
  byte[] keySetId = drmSession.getOfflineLicenseKeySetId();
  drmSessionManager.releaseSession(drmSession);
  if (error != null) {
    throw error;
  }
  return keySetId;
}
项目:Exoplayer2Radio    文件:OfflineLicenseHelper.java   
private DrmSession<T> openBlockingKeyRequest(@Mode int licenseMode, byte[] offlineLicenseKeySetId,
    DrmInitData drmInitData) {
  drmSessionManager.setMode(licenseMode, offlineLicenseKeySetId);
  conditionVariable.close();
  DrmSession<T> drmSession = drmSessionManager.acquireSession(handlerThread.getLooper(),
      drmInitData);
  // Block current thread until key loading is finished
  conditionVariable.block();
  return drmSession;
}
项目:K-Sonic    文件:OfflineLicenseHelper.java   
private void blockingKeyRequest(@Mode int licenseMode, byte[] offlineLicenseKeySetId,
    DrmInitData drmInitData) throws DrmSessionException {
  DrmSession<T> session = openBlockingKeyRequest(licenseMode, offlineLicenseKeySetId,
      drmInitData);
  DrmSessionException error = session.getError();
  if (error != null) {
    throw error;
  }
  drmSessionManager.releaseSession(session);
}
项目:K-Sonic    文件:OfflineLicenseHelper.java   
private DrmSession<T> openBlockingKeyRequest(@Mode int licenseMode, byte[] offlineLicenseKeySetId,
    DrmInitData drmInitData) {
  drmSessionManager.setMode(licenseMode, offlineLicenseKeySetId);
  conditionVariable.close();
  DrmSession<T> session = drmSessionManager.acquireSession(handlerThread.getLooper(),
      drmInitData);
  // Block current thread until key loading is finished
  conditionVariable.block();
  return session;
}
项目:transistor    文件:OfflineLicenseHelper.java   
private byte[] blockingKeyRequest(@Mode int licenseMode, byte[] offlineLicenseKeySetId,
    DrmInitData drmInitData) throws DrmSessionException {
  DrmSession<T> drmSession = openBlockingKeyRequest(licenseMode, offlineLicenseKeySetId,
      drmInitData);
  DrmSessionException error = drmSession.getError();
  byte[] keySetId = drmSession.getOfflineLicenseKeySetId();
  drmSessionManager.releaseSession(drmSession);
  if (error != null) {
    throw error;
  }
  return keySetId;
}
项目:transistor    文件:OfflineLicenseHelper.java   
private DrmSession<T> openBlockingKeyRequest(@Mode int licenseMode, byte[] offlineLicenseKeySetId,
    DrmInitData drmInitData) {
  drmSessionManager.setMode(licenseMode, offlineLicenseKeySetId);
  conditionVariable.close();
  DrmSession<T> drmSession = drmSessionManager.acquireSession(handlerThread.getLooper(),
      drmInitData);
  // Block current thread until key loading is finished
  conditionVariable.block();
  return drmSession;
}