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 <string>
14#include <vector>
15
16#include <absl/strings/escaping.h>
17
18#include <packager/mpd/base/media_info.pb.h>
19#include <packager/mpd/base/mpd_builder.h>
20
21namespace shaka{
22
23enum ContentType {
24 kContentTypeUnknown,
25 kContentTypeVideo,
26 kContentTypeAudio,
27 kContentTypeText
28};
29
33bool WriteMpdToFile(const std::string& output_path, MpdBuilder* mpd_builder);
34
38ContentType GetContentType(const MediaInfo& media_info);
39
41std::string Uint8VectorToBase64(const std::vector<uint8_t>& input);
42
43} // namespace shaka
44
45#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)