com.google.android.exoplayer.util.Util.executePost()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(135)

本文整理了Java中com.google.android.exoplayer.util.Util.executePost()方法的一些代码示例,展示了Util.executePost()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.executePost()方法的具体详情如下:
包路径:com.google.android.exoplayer.util.Util
类名称:Util
方法名:executePost

Util.executePost介绍

[英]Executes a post request using HttpURLConnection.
[中]使用HttpURLConnection执行post请求。

代码示例

代码示例来源:origin: fire3/sailorcast

@Override
public byte[] executeKeyRequest(UUID uuid, KeyRequest request) throws Exception {
 String url = request.getDefaultUrl();
 if (TextUtils.isEmpty(url)) {
  url = PLAYREADY_TEST_DEFAULT_URI;
 }
 return Util.executePost(url, request.getData(), KEY_REQUEST_PROPERTIES);
}

代码示例来源:origin: fire3/sailorcast

@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);
}

代码示例来源:origin: googlesamples/androidtv-sample-inputs

@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);
}

代码示例来源:origin: googlesamples/androidtv-sample-inputs

@Override
public byte[] executeKeyRequest(UUID uuid, KeyRequest request) throws IOException {
  String url = request.getDefaultUrl();
  if (TextUtils.isEmpty(url)) {
    url = defaultUri;
  }
  return Util.executePost(url, request.getData(), null);
}

代码示例来源:origin: googlesamples/androidtv-sample-inputs

@Override
public byte[] executeKeyRequest(UUID uuid, KeyRequest request) throws Exception {
  String url = request.getDefaultUrl();
  if (TextUtils.isEmpty(url)) {
    url = PLAYREADY_TEST_DEFAULT_URI;
  }
  return Util.executePost(url, request.getData(), KEY_REQUEST_PROPERTIES);
}

代码示例来源:origin: fire3/sailorcast

@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);
}

代码示例来源:origin: fire3/sailorcast

@Override
public byte[] executeKeyRequest(UUID uuid, KeyRequest request) throws IOException {
 String url = request.getDefaultUrl();
 if (TextUtils.isEmpty(url)) {
  url = defaultUri;
 }
 return Util.executePost(url, request.getData(), null);
}

代码示例来源:origin: googlesamples/androidtv-sample-inputs

@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);
}

代码示例来源:origin: bitmovin/bitcodin-android-demo

@Override
public byte[] executeKeyRequest(UUID uuid, KeyRequest request) throws IOException {
 String url = request.getDefaultUrl();
 if (TextUtils.isEmpty(url)) {
  url = defaultUri;
 }
 return Util.executePost(url, request.getData(), null);
}

代码示例来源:origin: bitmovin/bitcodin-android-demo

@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);
}

相关文章