Pepper_47_C++_interfaces
Public Member Functions | Protected Member Functions | List of all members
pp::DRMListener_Samsung Class Reference

#include <drm_listener_samsung.h>

Collaboration diagram for pp::DRMListener_Samsung:
Collaboration graph

Public Member Functions

virtual ~DRMListener_Samsung ()
 
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|. More...
 
void AttachTo (MediaPlayer_Samsung *player)
 Attaches listener to the |player|. More...
 

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.

Definition at line 23 of file drm_listener_samsung.h.

Constructor & Destructor Documentation

pp::DRMListener_Samsung::~DRMListener_Samsung ( )
virtual

Definition at line 52 of file drm_listener_samsung.cc.

pp::DRMListener_Samsung::DRMListener_Samsung ( )
protected

The default constructor which creates listener not attached to the player

Definition at line 66 of file drm_listener_samsung.cc.

pp::DRMListener_Samsung::DRMListener_Samsung ( MediaPlayer_Samsung player)
explicitprotected

Constructor which creates listener attached to the |player|.

Definition at line 69 of file drm_listener_samsung.cc.

References AttachTo().

Member Function Documentation

void pp::DRMListener_Samsung::AttachTo ( MediaPlayer_Samsung player)
protected

Attaches listener to the |player|.

Definition at line 74 of file drm_listener_samsung.cc.

References pp::Resource::pp_resource().

Referenced by DRMListener_Samsung().

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.

Definition at line 56 of file drm_listener_samsung.cc.

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.

Definition at line 62 of file drm_listener_samsung.cc.


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