7 #ifndef PACKAGER_HLS_BASE_HLS_NOTIFIER_H_ 8 #define PACKAGER_HLS_BASE_HLS_NOTIFIER_H_ 13 #include "packager/hls/public/hls_params.h" 14 #include "packager/mpd/base/media_info.pb.h" 27 virtual bool Init() = 0;
39 const std::string& playlist_name,
40 const std::string& stream_name,
41 const std::string& group_id,
42 uint32_t* stream_id) = 0;
53 const std::string& segment_name,
56 uint64_t start_byte_offset,
67 uint64_t start_byte_offset,
73 virtual bool NotifyCueEvent(uint32_t stream_id, uint64_t timestamp) = 0;
85 const std::vector<uint8_t>& key_id,
86 const std::vector<uint8_t>& system_id,
87 const std::vector<uint8_t>& iv,
88 const std::vector<uint8_t>& protection_system_specific_data) = 0;
92 virtual bool Flush() = 0;
104 #endif // PACKAGER_HLS_BASE_HLS_NOTIFIER_H_
virtual bool NotifyKeyFrame(uint32_t stream_id, uint64_t timestamp, uint64_t start_byte_offset, uint64_t size)=0
All the methods that are virtual are virtual for mocking.
const HlsParams & hls_params() const
virtual bool NotifyNewSegment(uint32_t stream_id, const std::string &segment_name, uint64_t start_time, uint64_t duration, uint64_t start_byte_offset, uint64_t size)=0
virtual bool NotifyNewStream(const MediaInfo &media_info, const std::string &playlist_name, const std::string &stream_name, const std::string &group_id, uint32_t *stream_id)=0
virtual bool NotifyEncryptionUpdate(uint32_t stream_id, const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &system_id, const std::vector< uint8_t > &iv, const std::vector< uint8_t > &protection_system_specific_data)=0
virtual bool NotifyCueEvent(uint32_t stream_id, uint64_t timestamp)=0