DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
mpd_notifier_util.h
1 // Copyright 2015 Google Inc. 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 "packager/base/base64.h"
17 #include "packager/mpd/base/media_info.pb.h"
18 #include "packager/mpd/base/mpd_builder.h"
19 
20 namespace shaka{
21 
22 enum ContentType {
23  kContentTypeUnknown,
24  kContentTypeVideo,
25  kContentTypeAudio,
26  kContentTypeText
27 };
28 
32 bool WriteMpdToFile(const std::string& output_path, MpdBuilder* mpd_builder);
33 
37 ContentType GetContentType(const MediaInfo& media_info);
38 
40 std::string Uint8VectorToBase64(const std::vector<uint8_t>& input);
41 
42 } // namespace shaka
43 
44 #endif // MPD_BASE_MPD_NOTIFIER_UTIL_H_
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)