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