Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::DRMListener_Samsung Class Reference

#include <drm_listener_samsung.h>

Public Member Functions

virtual void OnInitdataLoaded (PP_MediaPlayerDRMType drm_type, uint32_t init_data_size, const void *init_data)
 
virtual void OnLicenseRequest (uint32_t request_size, const void *request)
 

Protected Member Functions

 DRMListener_Samsung ()
 
 DRMListener_Samsung (MediaPlayer_Samsung *player)
 Constructor which creates listener attached to the |player|.
 
void AttachTo (MediaPlayer_Samsung *player)
 Attaches listener to the |player|.
 

Detailed Description

Listener for receiving DRM related events.

All event methods will be called on the same thread. If this class was created on a thread with a running message loop, the event methods will run on this thread. Otherwise, they will run on the main thread.

Constructor & Destructor Documentation

pp::DRMListener_Samsung::DRMListener_Samsung ( )
protected

The default constructor which creates listener not attached to the player

Member Function Documentation

virtual void pp::DRMListener_Samsung::OnInitdataLoaded ( PP_MediaPlayerDRMType  drm_type,
uint32_t  init_data_size,
const void *  init_data 
)
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.
virtual void pp::DRMListener_Samsung::OnLicenseRequest ( uint32_t  request_size,
const void *  request 
)
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: