shaka-packager/packager/mpd/base/mpd_options.h

39 lines
992 B
C++

// 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_
#include <string>
#include "packager/mpd/public/mpd_params.h"
namespace shaka {
enum class DashProfile {
kUnknown,
kOnDemand,
kLive,
};
enum class MpdType { kStatic, kDynamic };
/// Defines Mpd Options.
struct MpdOptions {
DashProfile dash_profile = DashProfile::kOnDemand;
MpdType mpd_type = MpdType::kStatic;
MpdParams mpd_params;
/// This is the target segment duration requested by the user. The actual
/// segment duration may be different to the target segment duration.
/// This parameter is included here to calculate the approximate
/// SegmentTimeline if it is enabled.
double target_segment_duration = 0;
};
} // namespace shaka
#endif // MPD_BASE_MPD_OPTIONS_H_