DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
mpd_options.h
1 // Copyright 2014 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 
7 #ifndef MPD_BASE_MPD_OPTIONS_H_
8 #define MPD_BASE_MPD_OPTIONS_H_
9 
10 #include <string>
11 
12 namespace shaka {
13 
14 enum class DashProfile {
15  kUnknown,
16  kOnDemand,
17  kLive,
18 };
19 
20 enum class MpdType { kStatic, kDynamic };
21 
23 struct MpdOptions {
24  DashProfile dash_profile = DashProfile::kOnDemand;
25  MpdType mpd_type = MpdType::kStatic;
26  double minimum_update_period = 0;
27  // TODO(tinskip): Set min_buffer_time in unit tests rather than here.
28  double min_buffer_time = 2.0;
29  double time_shift_buffer_depth = 0;
30  double suggested_presentation_delay = 0;
31  std::string default_language;
32 };
33 
34 } // namespace shaka
35 
36 #endif // MPD_BASE_MPD_OPTIONS_H_
Defines Mpd Options.
Definition: mpd_options.h:23