7 #ifndef MEDIA_BASE_KEY_SOURCE_H_
8 #define MEDIA_BASE_KEY_SOURCE_H_
13 #include "packager/media/base/protection_system_specific_info.h"
14 #include "packager/media/base/status.h"
21 enum class EmeInitDataType {
31 MAX = WIDEVINE_CLASSIC
38 std::vector<ProtectionSystemSpecificInfo> key_system_info;
39 std::vector<uint8_t> key_id;
40 std::vector<uint8_t> key;
41 std::vector<uint8_t> iv;
48 TRACK_TYPE_UNKNOWN = 0,
54 TRACK_TYPE_UNSPECIFIED = 6,
55 NUM_VALID_TRACK_TYPES = 6
66 const std::vector<uint8_t>& init_data) = 0;
80 virtual Status GetKey(
const std::vector<uint8_t>& key_id,
107 #endif // MEDIA_BASE_KEY_SOURCE_H_