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


Java ProvisionRequest类代码示例

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


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

示例1: handleMessage

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public void handleMessage(Message msg) {
  Object response;
  try {
    switch (msg.what) {
      case MSG_PROVISION:
        response = callback.executeProvisionRequest(uuid, (ProvisionRequest) msg.obj);
        break;
      case MSG_KEYS:
        response = callback.executeKeyRequest(uuid, (KeyRequest) msg.obj);
        break;
      default:
        throw new RuntimeException();
    }
  } catch (Exception e) {
    response = e;
  }
  postResponseHandler.obtainMessage(msg.what, response).sendToTarget();
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:20,代码来源:StreamingDrmSessionManager.java

示例2: postProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
private void postProvisionRequest() {
  if (provisioningInProgress) {
    return;
  }
  provisioningInProgress = true;
  ProvisionRequest request = mediaDrm.getProvisionRequest();
  postRequestHandler.obtainMessage(MSG_PROVISION, request).sendToTarget();
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:9,代码来源:StreamingDrmSessionManager.java

示例3: executeProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request) throws IOException {
    String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
    return Util.executePost(url, null, null);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:6,代码来源:SmoothStreamingTestMediaDrmCallback.java

示例4: executeProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request) throws IOException {
  String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
  return Util.executePost(url, null, null);
}
 
开发者ID:vuthanhict,项目名称:ExoPlayerController,代码行数:6,代码来源:SmoothStreamingTestMediaDrmCallback.java

示例5: executeProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request) throws IOException {
  String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
  return DemoUtil.executePost(url, null, null);
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:6,代码来源:SmoothStreamingTestMediaDrmCallback.java

示例6: executeProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request)
    throws ClientProtocolException, IOException {
  String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
  return DemoUtil.executePost(url, null, null);
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:7,代码来源:WidevineTestMediaDrmCallback.java

示例7: postProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
private void postProvisionRequest() {
  ProvisionRequest request = mediaDrm.getProvisionRequest();
  postRequestHandler.obtainMessage(MSG_PROVISION, request).sendToTarget();
}
 
开发者ID:edx,项目名称:edx-app-android,代码行数:5,代码来源:StreamingDrmSessionManager.java

示例8: executeProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request)
    throws ClientProtocolException, IOException {
  String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
  return ExoplayerUtil.executePost(url, null, null);
}
 
开发者ID:googleads,项目名称:google-media-framework-android,代码行数:7,代码来源:WidevineTestMediaDrmCallback.java

示例9: executeProvisionRequest

import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request)
    throws IOException {
  String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
  return ExoplayerUtil.executePost(url, null, null);
}
 
开发者ID:kaltura,项目名称:player-sdk-native-android,代码行数:7,代码来源:WidevineTestMediaDrmCallback.java


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