Package com.castlabs.sdk.oma

# Class OmaPlugin

java.lang.Object
com.castlabs.android.Plugin
com.castlabs.sdk.oma.OmaPlugin

@Deprecated public class OmaPlugin extends Plugin
Deprecated.
OMA-DRM is deprecated in favor of Widevine. If using OMA-DRM as a fallback for Widevine L1, Widevine L3 shall be used instead.
This plugin provides support for OMA-DRM within the Castlabs SDK.

Before you can use this plugin, you need to register it with the `PlayerSDK` before you initialize the SDK itself. For example:

         PlayerSDK.register(new OmaPlugin());
         PlayerSDK.init(getApplicationContext());

Since version 4.0.3, the OMA plugin exposes `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 int`
  `HTTP_CONNECTION_TIMEOUT_MS`
  Deprecated.
  The connection timeout that is used for HTTP connections opened by the OMA client.
  `static int`
  `HTTP_READ_TIMEOUT_MS`
  Deprecated.
  The read timeout that is used for HTTP connections opened by the OMA client.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OmaPlugin()`
  Deprecated.
  Creates a new OmaPlugin.
  `OmaPlugin(boolean allowClearPlayback)`
  Deprecated.
  Creates a new OmaPlugin.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `deleteLocalLicenses()`
  Deprecated.
  Call this method to delete all licenses that are stored on this device.
  `String`
  `getId()`
  Deprecated.

  ### Methods inherited from class com.castlabs.android.Plugin

  `init, onRemotePlay`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### HTTP_CONNECTION_TIMEOUT_MS

    public static int HTTP_CONNECTION_TIMEOUT_MS
    Deprecated.
    The connection timeout that is used for HTTP connections opened by the OMA client. The default timeout is 5 seconds. The value is overriden by `NetworkConfiguration.drmConnectionTimeoutMs` if the latter is set
    Since:
      4.0.3

  - ### HTTP_READ_TIMEOUT_MS

    public static int HTTP_READ_TIMEOUT_MS
    Deprecated.
    The read timeout that is used for HTTP connections opened by the OMA client. The default timeout is 5 seconds. The value is overriden by `NetworkConfiguration.drmReadTimeoutMs` if the latter is set
    Since:
      4.2.11

- ## Constructor Details

  - ### OmaPlugin

    public OmaPlugin()
    Deprecated.
    Creates a new OmaPlugin.

  - ### OmaPlugin

    public OmaPlugin(boolean allowClearPlayback)
    Deprecated.
    Creates a new OmaPlugin.
    Parameters:
      `allowClearPlayback` - Whether to allow clear playback.

- ## Method Details

  - ### getId

    @NonNull public String getId()
    Deprecated.
    Specified by:
      `getId` in class `Plugin`

  - ### deleteLocalLicenses

    public static void deleteLocalLicenses()
    Deprecated.
    Call this method to delete all licenses that are stored on this device. This can be useful if you encounter `SecurityException` raised 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.