Skip to main content

DRM

DrmSessionManagerListener Interface

com.kollus.sdk.media.KollusStorage.DrmSessionManagerListener

An interface for managing the lifecycle of DRM(Digital Rights Management) sessions and monitoring errors that occur during the license issuance process.

Public Methods

  • void onError(int errorCode)

Method Details

void com.kollus.sdk.media.KollusStorage.DrmSessionManagerListener.onError(int errorCode)

Called when an error occurs during DRM license validation or session creation. The specific cause of failure can be identified through the delivered error code.

  • Parameters
    • errorCode: DRM-related error code

KollusPlayerDRMListener Interface

com.kollus.sdk.media.KollusPlayerDRMListener

An interface for receiving server communication data and policy responses from the server (content control commands) that occur during the DRM authentication process of content.

Public Methods

  • void onDRM(String request, String response)
  • void onDRMInfo(KollusContent content, int nInfoCode)

Method Details

void com.kollus.sdk.media.KollusPlayerDRMListener.onDRM(String request, String response)

Receives the request data sent by the client to the server for DRM authentication and the result data received from the server.

  • Parameters
    • request: Request data sent to the DRM server
    • response: Response data received from the DRM server

void com.kollus.sdk.media.KollusPlayerDRMListener.onDRMInfo(KollusContent content, int nInfoCode)

Called when the content state has changed according to specific instructions (kind response information) received from the DRM server. This event is triggered after policy-based data processing such as deletion of local content, forced expiration, and settings reset has been completed.

  • Parameters
    • content: Metadata information of the content whose state has changed
    • nInfoCode: Changed state information (DCB_INFO_DELETE, DCB_INFO_EXPIRED, DCB_INFO_RESET)

Property Details

PropertyValueDescription
DCB_INFO_DELETE0A status code indicating that the local data of the content has been deleted in response to a DRM download callback.
DCB_INFO_EXPIRED1A status code indicating that the content has been forcibly expired by a DRM policy.
DCB_INFO_RESET2A status code indicating that the configuration information of the content has been reset at the request of the DRM server.

KollusPlayerDRMUpdateListener Interface

com.kollus.sdk.media.KollusPlayerDRMUpdateListener

An interface for monitoring the start, progress, and completion status of the DRM license renewal process for content.

Public Methods

  • void onDRMUpdateComplete()
  • void onDRMUpdateProcess(String request, String response)
  • void onDRMUpdateStart()

Method Details

void com.kollus.sdk.media.KollusPlayerDRMUpdateListener.onDRMUpdateComplete()

Called when the DRM license renewal process has been completed successfully.


void com.kollus.sdk.media.KollusPlayerDRMUpdateListener.onDRMUpdateProcess(String request, String response)

Receives the current progress of the DRM information update. During the update process, data exchanged with the server is delivered through this method instead of KollusPlayerDRMListener.onDRM().

  • Parameters
    • request: Request data sent to the server
    • response: Response data received from the server

void com.kollus.sdk.media.KollusPlayerDRMUpdateListener.onDRMUpdateStart()

Called immediately before network communication for the update begins.


KollusPlayerCallbackListener Interface

com.kollus.sdk.media.KollusPlayerCallbackListener

An interface for monitoring raw data exchanged with the server during the DRM authentication and license issuance process.

Public Methods

  • void onCallbackMessage(String request, String response)

Method Details

void com.kollus.sdk.media.KollusPlayerCallbackListener.onCallbackMessage(String request, String response)

Receives the request data sent by the client to the server and the server's response data related to DRM.

  • Parameters
    • request: Data sent by the SDK to the DRM server
    • response: Result data received from the DRM server