NaCl Player API
NaCl Player API Documentation
Samsung::NaClPlayer::DRMListener Class Referenceabstract

Listener for receiving DRM related events. More...

#include <drm_listener.h>

Public Member Functions

virtual void OnInitdataLoaded (DRMType drm_type, uint32_t init_data_size, const void *init_data)=0
 
virtual void OnLicenseRequest (uint32_t request_size, const void *request)=0
 

Protected Member Functions

 DRMListener ()
 

Detailed Description

Listener for receiving DRM related events.

Definition at line 19 of file drm_listener.h.

Constructor & Destructor Documentation

◆ DRMListener()

Samsung::NaClPlayer::DRMListener::DRMListener ( )
protected

The default constructor which creates listener not attached to the player

Member Function Documentation

◆ OnInitdataLoaded()

virtual void Samsung::NaClPlayer::DRMListener::OnInitdataLoaded ( DRMType  drm_type,
uint32_t  init_data_size,
const void *  init_data 
)
pure virtual

During parsing media container encrypted track was found.

Parameters
[in]drm_typeA type of DRM system
[in]init_data_sizeSize in bytes of |init_data| buffer.
[in]init_dataA pointer to the buffer containing DRM specific initialization data.

◆ OnLicenseRequest()

virtual void Samsung::NaClPlayer::DRMListener::OnLicenseRequest ( uint32_t  request_size,
const void *  request 
)
pure virtual

Decryption license needs to be requested from the server and provided to the player.

Parameters
[in]request_sizeSize in bytes of |request| buffer.
[in]requestA pointer to the buffer containing DRM specific request.

The documentation for this class was generated from the following file: