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;
85  bool allow_codec_switching = false;
89  bool include_mspr_pro = true;
93  bool use_segment_list = false;
94 };
95 
96 } // namespace shaka
97 
98 #endif // PACKAGER_MPD_PUBLIC_MPD_PARAMS_H_
shaka::MpdParams::min_buffer_time
double min_buffer_time
Definition: mpd_params.h:27
shaka::MpdParams::generate_dash_if_iop_compliant_mpd
bool generate_dash_if_iop_compliant_mpd
Try to generate DASH-IF IOP compliant MPD.
Definition: mpd_params.h:66
shaka::MpdParams::default_text_language
std::string default_text_language
Definition: mpd_params.h:61
shaka::MpdParams::mpd_output
std::string mpd_output
MPD output file path.
Definition: mpd_params.h:18
shaka
All the methods that are virtual are virtual for mocking.
Definition: gflags_hex_bytes.cc:11
shaka::MpdParams::target_segment_duration
double target_segment_duration
Definition: mpd_params.h:82
shaka::MpdParams::include_mspr_pro
bool include_mspr_pro
Definition: mpd_params.h:89
shaka::MpdParams::allow_codec_switching
bool allow_codec_switching
Definition: mpd_params.h:85
shaka::MpdParams::default_language
std::string default_language
Definition: mpd_params.h:58
shaka::MpdParams::kSuggestedPresentationDelayNotSet
static constexpr double kSuggestedPresentationDelayNotSet
Definition: mpd_params.h:35
shaka::MpdParams::base_urls
std::vector< std::string > base_urls
Definition: mpd_params.h:21
shaka::MpdParams::generate_static_live_mpd
bool generate_static_live_mpd
Definition: mpd_params.h:64
shaka::MpdParams::UtcTiming
UTCTimings. For dynamic MPD only.
Definition: mpd_params.h:48
shaka::MpdParams::preserved_segments_outside_live_window
size_t preserved_segments_outside_live_window
Definition: mpd_params.h:46
shaka::MpdParams::minimum_update_period
double minimum_update_period
Definition: mpd_params.h:30
shaka::MpdParams
DASH MPD related parameters.
Definition: mpd_params.h:16
shaka::MpdParams::time_shift_buffer_depth
double time_shift_buffer_depth
Definition: mpd_params.h:39
shaka::MpdParams::allow_approximate_segment_timeline
bool allow_approximate_segment_timeline
Definition: mpd_params.h:76
shaka::MpdParams::use_segment_list
bool use_segment_list
Definition: mpd_params.h:93