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