NaCl Player API
NaCl Player API Documentation
drm_listener.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NACL_PLAYER_DRM_LISTENER_H_
6 #define NACL_PLAYER_DRM_LISTENER_H_
7 
8 #include <cstdint>
9 
10 #include "nacl_player/media_common.h"
11 
15 namespace Samsung {
16 namespace NaClPlayer {
17 
19 class DRMListener {
20  public:
21  virtual ~DRMListener();
22 
29  virtual void OnInitdataLoaded(
30  DRMType drm_type,
31  uint32_t init_data_size,
32  const void* init_data) = 0;
33 
40  virtual void OnLicenseRequest(uint32_t request_size, const void* request) = 0;
41 
42  protected:
45  DRMListener();
46 };
47 
48 } // namespace NaClPlayer
49 } // namespace Samsung
50 
51 #endif // NACL_PLAYER_DRM_LISTENER_H_
virtual void OnLicenseRequest(uint32_t request_size, const void *request)=0
DRMType
List of supported types of DRM systems.
Definition: media_common.h:98
Listener for receiving DRM related events.
Definition: drm_listener.h:19
virtual void OnInitdataLoaded(DRMType drm_type, uint32_t init_data_size, const void *init_data)=0