Shaka Packager SDK
mpd_params.h
1 // Copyright 2017 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 PACKAGER_MPD_PUBLIC_MPD_PARAMS_H_
8 #define PACKAGER_MPD_PUBLIC_MPD_PARAMS_H_
9 
10 #include <string>
11 #include <vector>
12 
13 namespace shaka {
14 
16 struct MpdParams {
18  std::string mpd_output;
21  std::vector<std::string> base_urls;
27  double min_buffer_time = 2.0;
35  static constexpr double kSuggestedPresentationDelayNotSet = 0;
36  double suggested_presentation_delay = kSuggestedPresentationDelayNotSet;
48  struct UtcTiming {
49  std::string scheme_id_uri;
50  std::string value;
51  };
52  std::vector<UtcTiming> utc_timings;
58  std::string default_language;
61  std::string default_text_language;
83 };
84 
85 } // namespace shaka
86 
87 #endif // PACKAGER_MPD_PUBLIC_MPD_PARAMS_H_
DASH MPD related parameters.
Definition: mpd_params.h:16
double min_buffer_time
Definition: mpd_params.h:27
UTCTimings. For dynamic MPD only.
Definition: mpd_params.h:48
std::string default_language
Definition: mpd_params.h:58
size_t preserved_segments_outside_live_window
Definition: mpd_params.h:46
bool generate_dash_if_iop_compliant_mpd
Try to generate DASH-IF IOP compliant MPD.
Definition: mpd_params.h:66
bool generate_static_live_mpd
Definition: mpd_params.h:64
All the methods that are virtual are virtual for mocking.
static constexpr double kSuggestedPresentationDelayNotSet
Definition: mpd_params.h:35
std::string mpd_output
MPD output file path.
Definition: mpd_params.h:18
std::vector< std::string > base_urls
Definition: mpd_params.h:21
double target_segment_duration
Definition: mpd_params.h:82
double minimum_update_period
Definition: mpd_params.h:30
double time_shift_buffer_depth
Definition: mpd_params.h:39
bool allow_approximate_segment_timeline
Definition: mpd_params.h:76
std::string default_text_language
Definition: mpd_params.h:61