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