7 #ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_UTILS_H_
8 #define PACKAGER_MEDIA_FORMATS_WEBVTT_UTILS_H_
14 #include <string_view>
16 #include <packager/media/base/text_sample.h>
17 #include <packager/media/base/text_stream_info.h>
25 bool WebVttTimestampToMs(
const std::string_view& source, int64_t* out);
28 std::string MsToWebVttTimestamp(uint64_t ms);
31 std::string WebVttSettingsToString(
const TextSettings& settings);
34 std::string WebVttFragmentToString(
const TextFragment& fragment);
38 std::string WebVttGetPreamble(
const TextStreamInfo& stream_info);
All the methods that are virtual are virtual for mocking.