7 #ifndef PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_
8 #define PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_
15 #include <packager/macros/classes.h>
16 #include <packager/media/base/container_names.h>
34 typedef std::function<void(
35 const std::vector<std::shared_ptr<StreamInfo> >& stream_info)>
43 typedef std::function<bool(uint32_t track_id,
44 std::shared_ptr<MediaSample> media_sample)>
52 typedef std::function<bool(uint32_t track_id,
53 std::shared_ptr<TextSample> text_sample)>
74 [[nodiscard]]
virtual bool Flush() = 0;
78 [[nodiscard]]
virtual bool Parse(
const uint8_t* buf,
int size) = 0;
All the methods that are virtual are virtual for mocking.