Package com.castlabs.sdk.oma
Class OmaPlugin
- java.lang.Object
-
- com.castlabs.android.Plugin
-
- com.castlabs.sdk.oma.OmaPlugin
-
public class OmaPlugin extends Plugin
This plugin provides support for OMA-DRM within the Castlabs SDK. Before you can use this plugin, you need to register it with thePlayerSDKbefore you initialize the SDK itself. For example:
Since version 4.0.3, the OMA plugin exposesPlayerSDK.register(new OmaPlugin()); PlayerSDK.init(getApplicationContext());HTTP_CONNECTION_TIMEOUT_MS. You can adjust the timeout for all http connections opened by the OMA client.- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static intHTTP_CONNECTION_TIMEOUT_MSThe connection timeout that is used for HTTP connections opened by the OMA client.static intHTTP_READ_TIMEOUT_MSThe read timeout that is used for HTTP connections opened by the OMA client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddeleteLocalLicenses()Call this method to delete all licenses that are stored on this device.StringgetId()-
Methods inherited from class com.castlabs.android.Plugin
init, onRemotePlay
-
-
-
-
Field Detail
-
HTTP_CONNECTION_TIMEOUT_MS
public static int HTTP_CONNECTION_TIMEOUT_MS
The connection timeout that is used for HTTP connections opened by the OMA client. The default timeout is 5 seconds. The value is overriden byNetworkConfiguration.drmConnectionTimeoutMsif the latter is set- Since:
- 4.0.3
-
HTTP_READ_TIMEOUT_MS
public static int HTTP_READ_TIMEOUT_MS
The read timeout that is used for HTTP connections opened by the OMA client. The default timeout is 5 seconds. The value is overriden byNetworkConfiguration.drmReadTimeoutMsif the latter is set- Since:
- 4.2.11
-
-
Method Detail
-
deleteLocalLicenses
public static void deleteLocalLicenses()
Call this method to delete all licenses that are stored on this device. This can be useful if you encounterSecurityExceptionraised because the device time changed. In that case you need to either set the devices time back to its original value or you need to remove all licenses from the devices and re-fetch them with accurate time stamps.
-
-