7 #include <packager/media/base/text_stream_info.h>
9 #include <absl/strings/str_format.h>
18 const std::string& codec_string,
19 const std::string& codec_config,
22 const std::string& language)
29 reinterpret_cast<const uint8_t*>(codec_config.data()),
36 TextStreamInfo::~TextStreamInfo() {}
44 if (!sub_streams_.empty()) {
45 ret +=
" Sub Streams:";
46 for (
auto& pair : sub_streams_) {
47 ret += absl::StrFormat(
"\n ID: %u, Lang: %s", pair.first,
48 pair.second.language.c_str());
TextStreamInfo(int track_id, int32_t time_scale, int64_t duration, Codec codec, const std::string &codec_string, const std::string &codec_config, uint16_t width, uint16_t height, const std::string &language)
std::string ToString() const override
std::unique_ptr< StreamInfo > Clone() const override
bool IsValidConfig() const override
All the methods that are virtual are virtual for mocking.