Package com.brightcove.player.drm
Class DrmUtil
java.lang.Object
com.brightcove.player.drm.BrightcoveDrmUtil
com.brightcove.player.drm.DrmUtil
Provides utility methods to work DRM licenses.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.android.exoplayer2.upstream.HttpDataSource
Creates new instance of theHttpDataSource
.static com.google.android.exoplayer2.upstream.HttpDataSource
createHttpDataSource
(Map<String, String> requestProperties) Creates new instance of theHttpDataSource
.static byte[]
executePost
(String url, byte[] data, Map<String, String> requestProperties) Methods inherited from class com.brightcove.player.drm.BrightcoveDrmUtil
getLicenseDuration, getLongValue, getRemainingLicenseDuration, getRemainingPlaybackDuration
-
Constructor Details
-
DrmUtil
public DrmUtil()
-
-
Method Details
-
createHttpDataSource
@NonNull public static com.google.android.exoplayer2.upstream.HttpDataSource createHttpDataSource(@Nullable Map<String, String> requestProperties) Creates new instance of theHttpDataSource
.- Parameters:
requestProperties
- a map of HTTP header names and values to be added to the request.- Returns:
- the newly created HTTP data source.
-
createHttpDataSource
@NonNull public static com.google.android.exoplayer2.upstream.HttpDataSource createHttpDataSource()Creates new instance of theHttpDataSource
.- Returns:
- the newly created HTTP data source.
-
executePost
public static byte[] executePost(String url, @Nullable byte[] data, @Nullable Map<String, String> requestProperties) throws IOException- Throws:
IOException
-