public class ExoplayerUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.UUID |
WIDEVINE_UUID
The UUID of the Widevine DRM scheme.
|
Constructor and Description |
---|
ExoplayerUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
executePost(java.lang.String url,
byte[] data,
java.util.Map<java.lang.String,java.lang.String> requestProperties)
Do an HTTP POST and return the data as a byte array.
|
static java.lang.String |
getUserAgent(android.content.Context context)
Generate a User-Agent string that should be sent with HTTP requests.
|
public static final java.util.UUID WIDEVINE_UUID
public static java.lang.String getUserAgent(android.content.Context context)
context
- The context (ex Activity
which is calling this method.public static byte[] executePost(java.lang.String url, byte[] data, java.util.Map<java.lang.String,java.lang.String> requestProperties) throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException