Interface ExoMediaDrm

  • All Known Implementing Classes:
    DummyExoMediaDrm, FakeExoMediaDrm, FrameworkMediaDrm

    public interface ExoMediaDrm
    Used to obtain keys for decrypting protected media streams.

    Reference counting

    Access to an instance is managed by reference counting, where acquire() increments the reference count and release() decrements it. When the reference count drops to 0 underlying resources are released, and the instance cannot be re-used.

    Each new instance has an initial reference count of 1. Hence application code that creates a new instance does not normally need to call acquire(), and must call release() when the instance is no longer required.

    See Also:
    MediaDrm
    • Field Detail

      • EVENT_KEY_REQUIRED

        static final int EVENT_KEY_REQUIRED
        Event indicating that keys need to be requested from the license server.
        See Also:
        Constant Field Values
      • EVENT_KEY_EXPIRED

        static final int EVENT_KEY_EXPIRED
        Event indicating that keys have expired, and are no longer usable.
        See Also:
        Constant Field Values
      • EVENT_PROVISION_REQUIRED

        static final int EVENT_PROVISION_REQUIRED
        Event indicating that a certificate needs to be requested from the provisioning server.
        See Also:
        Constant Field Values
      • KEY_TYPE_STREAMING

        static final int KEY_TYPE_STREAMING
        Key request type for keys that will be used for online use. Streaming keys will not be saved to the device for subsequent use when the device is not connected to a network.
        See Also:
        Constant Field Values
      • KEY_TYPE_OFFLINE

        static final int KEY_TYPE_OFFLINE
        Key request type for keys that will be used for offline use. They will be saved to the device for subsequent use when the device is not connected to a network.
        See Also:
        Constant Field Values
      • KEY_TYPE_RELEASE

        static final int KEY_TYPE_RELEASE
        Key request type indicating that saved offline keys should be released.
        See Also:
        Constant Field Values