2014-12-13 00:13:48 +00:00
|
|
|
// Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
#ifndef MPD_BASE_MPD_OPTIONS_H_
|
|
|
|
#define MPD_BASE_MPD_OPTIONS_H_
|
|
|
|
|
2015-12-21 23:10:17 +00:00
|
|
|
#include <string>
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-12-13 00:13:48 +00:00
|
|
|
|
2016-12-21 23:28:56 +00:00
|
|
|
enum class DashProfile {
|
|
|
|
kUnknown,
|
|
|
|
kOnDemand,
|
|
|
|
kLive,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum class MpdType { kStatic, kDynamic };
|
|
|
|
|
2014-12-13 00:13:48 +00:00
|
|
|
/// Defines Mpd Options.
|
|
|
|
struct MpdOptions {
|
2016-12-21 23:28:56 +00:00
|
|
|
DashProfile dash_profile = DashProfile::kOnDemand;
|
|
|
|
MpdType mpd_type = MpdType::kStatic;
|
|
|
|
double availability_time_offset = 0;
|
|
|
|
double minimum_update_period = 0;
|
|
|
|
// TODO(tinskip): Set min_buffer_time in unit tests rather than here.
|
|
|
|
double min_buffer_time = 2.0;
|
|
|
|
double time_shift_buffer_depth = 0;
|
|
|
|
double suggested_presentation_delay = 0;
|
2016-09-28 21:42:52 +00:00
|
|
|
std::string default_language;
|
2014-12-13 00:13:48 +00:00
|
|
|
};
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-12-13 00:13:48 +00:00
|
|
|
|
|
|
|
#endif // MPD_BASE_MPD_OPTIONS_H_
|