Shaka Packager SDK
Loading...
Searching...
No Matches
mpd_notifier_util.h
1// Copyright 2015 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
9
10#ifndef MPD_BASE_MPD_NOTIFIER_UTIL_H_
11#define MPD_BASE_MPD_NOTIFIER_UTIL_H_
12
13#include <cstdint>
14#include <string>
15#include <vector>
16
17#include <absl/strings/escaping.h>
18
19#include <packager/mpd/base/media_info.pb.h>
20#include <packager/mpd/base/mpd_builder.h>
21
22namespace shaka{
23
24enum ContentType {
25 kContentTypeUnknown,
26 kContentTypeVideo,
27 kContentTypeAudio,
28 kContentTypeText
29};
30
34bool WriteMpdToFile(const std::string& output_path, MpdBuilder* mpd_builder);
35
39ContentType GetContentType(const MediaInfo& media_info);
40
42std::string Uint8VectorToBase64(const std::vector<uint8_t>& input);
43
44} // namespace shaka
45
46#endif // MPD_BASE_MPD_NOTIFIER_UTIL_H_
All the methods that are virtual are virtual for mocking.
std::string Uint8VectorToBase64(const std::vector< uint8_t > &input)
Converts uint8 vector into base64 encoded string.
ContentType GetContentType(const MediaInfo &media_info)
bool WriteMpdToFile(const std::string &output_path, MpdBuilder *mpd_builder)