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