本文整理汇总了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();
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例7: postProvisionRequest
import android.media.MediaDrm.ProvisionRequest; //导入依赖的package包/类
private void postProvisionRequest() {
ProvisionRequest request = mediaDrm.getProvisionRequest();
postRequestHandler.obtainMessage(MSG_PROVISION, request).sendToTarget();
}
示例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);
}
示例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);
}