7 #include "packager/media/base/text_sample.h"
9 #include "packager/base/logging.h"
14 uint64_t TextSample::EndTime()
const {
15 return start_time_ + duration_;
18 void TextSample::SetTime(uint64_t start_time, uint64_t end_time) {
19 DCHECK_LT(start_time, end_time);
20 start_time_ = start_time;
21 duration_ = end_time - start_time;
24 void TextSample::AppendPayload(
const std::string& payload) {
25 if (payload_.length()) {