7 #include "packager/media/base/text_stream_info.h"
9 #include "packager/base/strings/stringprintf.h"
17 const std::string& codec_string,
18 const std::string& codec_config, uint16_t width,
19 uint16_t height,
const std::string& language)
20 :
StreamInfo(kStreamText, track_id, time_scale, duration, codec,
22 reinterpret_cast<const uint8_t*>(codec_config.data()),
23 codec_config.size(), language, false),
27 TextStreamInfo::~TextStreamInfo() {}
35 if (!sub_streams_.empty()) {
36 ret +=
" Sub Streams:";
37 for (
auto& pair : sub_streams_) {
38 ret += base::StringPrintf(
"\n ID: %u, Lang: %s", pair.first,
39 pair.second.language.c_str());