当前位置: 首页>>代码示例>>Java>>正文


Java NotProvisionedException类代码示例

本文整理汇总了Java中android.media.NotProvisionedException的典型用法代码示例。如果您正苦于以下问题:Java NotProvisionedException类的具体用法?Java NotProvisionedException怎么用?Java NotProvisionedException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NotProvisionedException类属于android.media包,在下文中一共展示了NotProvisionedException类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
@Override
public KeyRequest getKeyRequest(byte[] scope, byte[] init, String mimeType, int keyType,
    HashMap<String, String> optionalParameters) throws NotProvisionedException {
  final MediaDrm.KeyRequest request = mediaDrm.getKeyRequest(scope, init, mimeType, keyType,
      optionalParameters);
  return new KeyRequest() {
    @Override
    public byte[] getData() {
      return request.getData();
    }

    @Override
    public String getDefaultUrl() {
      return request.getDefaultUrl();
    }
  };
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:18,代码来源:FrameworkMediaDrm.java

示例2: postKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
private void postKeyRequest() {
  KeyRequest keyRequest;
  try {
    keyRequest = mediaDrm.getKeyRequest(sessionId, schemeInitData.data, schemeInitData.mimeType,
        MediaDrm.KEY_TYPE_STREAMING, optionalKeyRequestParameters);
    postRequestHandler.obtainMessage(MSG_KEYS, keyRequest).sendToTarget();
  } catch (NotProvisionedException e) {
    onKeysError(e);
  }
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:11,代码来源:StreamingDrmSessionManager.java

示例3: onKeysError

import android.media.NotProvisionedException; //导入依赖的package包/类
private void onKeysError(Exception e) {
  if (e instanceof NotProvisionedException) {
    postProvisionRequest();
  } else {
    onError(e);
  }
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:8,代码来源:StreamingDrmSessionManager.java

示例4: postKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
private void postKeyRequest() {
  KeyRequest keyRequest;
  try {
    keyRequest = mediaDrm.getKeyRequest(sessionId, schemeData, mimeType,
        MediaDrm.KEY_TYPE_STREAMING, optionalKeyRequestParameters);
    postRequestHandler.obtainMessage(MSG_KEYS, keyRequest).sendToTarget();
  } catch (NotProvisionedException e) {
    onKeysError(e);
  }
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:11,代码来源:StreamingDrmSessionManager.java

示例5: postKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
private void postKeyRequest() {
  KeyRequest keyRequest;
  try {
    keyRequest = mediaDrm.getKeyRequest(sessionId, schemeData.data, schemeData.mimeType,
        MediaDrm.KEY_TYPE_STREAMING, optionalKeyRequestParameters);
    postRequestHandler.obtainMessage(MSG_KEYS, keyRequest).sendToTarget();
  } catch (NotProvisionedException e) {
    onKeysError(e);
  }
}
 
开发者ID:zhanglibin123488,项目名称:videoPickPlayer,代码行数:11,代码来源:StreamingDrmSessionManager.java

示例6: postKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
private void postKeyRequest() {
  KeyRequest keyRequest;
  try {
    keyRequest = mediaDrm.getKeyRequest(sessionId, schemePsshData, mimeType,
        MediaDrm.KEY_TYPE_STREAMING, optionalKeyRequestParameters);
    postRequestHandler.obtainMessage(MSG_KEYS, keyRequest).sendToTarget();
  } catch (NotProvisionedException e) {
    onKeysError(e);
  }
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:11,代码来源:StreamingDrmSessionManager.java

示例7: onKeysError

import android.media.NotProvisionedException; //导入依赖的package包/类
private void onKeysError(Exception e) {
  if (e instanceof NotProvisionedException) {
    provisioningManager.provisionRequired(this);
  } else {
    onError(e);
  }
}
 
开发者ID:y20k,项目名称:transistor,代码行数:8,代码来源:DefaultDrmSession.java

示例8: getKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
@Override
public KeyRequest getKeyRequest(byte[] scope, byte[] init, String mimeType, int keyType,
    HashMap<String, String> optionalParameters) throws NotProvisionedException {
  final MediaDrm.KeyRequest request = mediaDrm.getKeyRequest(scope, init, mimeType, keyType,
      optionalParameters);
  return new DefaultKeyRequest(request.getData(), request.getDefaultUrl());
}
 
开发者ID:y20k,项目名称:transistor,代码行数:8,代码来源:FrameworkMediaDrm.java

示例9: postKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
private void postKeyRequest() {
  KeyRequest keyRequest;
  try {
    keyRequest = mediaDrm.getKeyRequest(sessionId, schemePsshData, mimeType,
        MediaDrm.KEY_TYPE_STREAMING, null);
    postRequestHandler.obtainMessage(MSG_KEYS, keyRequest).sendToTarget();
  } catch (NotProvisionedException e) {
    onKeysError(e);
  }
}
 
开发者ID:edx,项目名称:edx-app-android,代码行数:11,代码来源:StreamingDrmSessionManager.java

示例10: getOfflineKeyRequest

import android.media.NotProvisionedException; //导入依赖的package包/类
MediaDrm.KeyRequest getOfflineKeyRequest(byte[] initData, String mimeType) {
    try {
        return mMediaDrm.getKeyRequest(mSessionId, initData, mimeType, MediaDrm.KEY_TYPE_OFFLINE, null);
    } catch (NotProvisionedException e) {
        throw new WidevineNotSupportedException(e);
    }
}
 
开发者ID:kaltura,项目名称:player-sdk-native-android,代码行数:8,代码来源:MediaDrmSession.java

示例11: provideKeyResponse

import android.media.NotProvisionedException; //导入依赖的package包/类
byte[] provideKeyResponse(byte[] keyResponse) throws DeniedByServerException {
    try {
        return mMediaDrm.provideKeyResponse(mSessionId, keyResponse);
    } catch (NotProvisionedException e) {
        throw new WidevineNotSupportedException(e);
    }
}
 
开发者ID:kaltura,项目名称:player-sdk-native-android,代码行数:8,代码来源:MediaDrmSession.java

示例12: openSession

import android.media.NotProvisionedException; //导入依赖的package包/类
@Override
public byte[] openSession() throws NotProvisionedException, ResourceBusyException {
  return mediaDrm.openSession();
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:5,代码来源:FrameworkMediaDrm.java

示例13: provideKeyResponse

import android.media.NotProvisionedException; //导入依赖的package包/类
@Override
public byte[] provideKeyResponse(byte[] scope, byte[] response)
    throws NotProvisionedException, DeniedByServerException {
  return mediaDrm.provideKeyResponse(scope, response);
}
 
开发者ID:pooyafaroka,项目名称:PlusGram,代码行数:6,代码来源:FrameworkMediaDrm.java


注:本文中的android.media.NotProvisionedException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。