Java Code Examples for com.google.android.exoplayer.util.Util#executePost()

The following examples show how to use com.google.android.exoplayer.util.Util#executePost() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SmoothStreamingTestMediaDrmCallback.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 2
Source File: SmoothStreamingTestMediaDrmCallback.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 3
Source File: WidevineTestMediaDrmCallback.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 4
Source File: SmoothStreamingTestMediaDrmCallback.java    From ShareBox with Apache License 2.0 4 votes vote down vote up
@Override
public byte[] executeProvisionRequest(UUID uuid, ProvisionRequest request) throws IOException {
  String url = request.getDefaultUrl() + "&signedRequest=" + new String(request.getData());
  return Util.executePost(url, null, PROVISIONING_REQUEST_PROPERTIES);
}
 
Example 5
Source File: SmoothStreamingTestMediaDrmCallback.java    From androidtv-sample-inputs with Apache License 2.0 4 votes vote down vote up
@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);
}
 
Example 6
Source File: WidevineTestMediaDrmCallback.java    From androidtv-sample-inputs with Apache License 2.0 4 votes vote down vote up
@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);
}