7 #ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_UTILS_H_
8 #define PACKAGER_MEDIA_FORMATS_WEBVTT_UTILS_H_
16 #include "packager/base/strings/string_piece.h"
17 #include "packager/media/base/text_sample.h"
18 #include "packager/media/base/text_stream_info.h"
26 bool WebVttTimestampToMs(
const base::StringPiece& source, uint64_t* out);
29 std::string MsToWebVttTimestamp(uint64_t ms);
32 std::string WebVttSettingsToString(
const TextSettings& settings);
35 std::string WebVttFragmentToString(
const TextFragment& fragment);
39 std::string WebVttGetPreamble(
const TextStreamInfo& stream_info);
44 #endif // PACKAGER_MEDIA_FORMATS_WEBVTT_UTILS_H_