10 #ifndef MPD_BASE_MPD_NOTIFIER_H_
11 #define MPD_BASE_MPD_NOTIFIER_H_
17 #include "packager/base/macros.h"
22 struct ContentProtectionElement;
40 virtual bool Init() = 0;
51 uint32_t* container_id) = 0;
61 uint32_t sample_duration) = 0;
88 const std::string& drm_uuid,
89 const std::vector<uint8_t>& new_key_id,
90 const std::vector<uint8_t>& new_pssh) = 0;
99 uint32_t container_id,
105 virtual bool Flush() = 0;
111 const DashProfile dash_profile_;
118 #endif // MPD_BASE_MPD_NOTIFIER_H_
virtual bool NotifyNewSegment(uint32_t container_id, uint64_t start_time, uint64_t duration, uint64_t size)=0
virtual bool NotifySampleDuration(uint32_t container_id, uint32_t sample_duration)=0
virtual bool AddContentProtectionElement(uint32_t container_id, const ContentProtectionElement &content_protection_element)=0
virtual bool NotifyNewContainer(const MediaInfo &media_info, uint32_t *container_id)=0
virtual bool NotifyEncryptionUpdate(uint32_t container_id, const std::string &drm_uuid, const std::vector< uint8_t > &new_key_id, const std::vector< uint8_t > &new_pssh)=0
DashProfile dash_profile() const