2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2017 Google LLC. All rights reserved.
|
2017-11-13 18:08:44 +00:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2023-10-14 16:36:01 +00:00
|
|
|
#ifndef PACKAGER_PUBLIC_AD_CUE_GENERATOR_PARAMS_H_
|
|
|
|
#define PACKAGER_PUBLIC_AD_CUE_GENERATOR_PARAMS_H_
|
2017-11-13 18:08:44 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace shaka {
|
|
|
|
|
|
|
|
struct Cuepoint {
|
|
|
|
/// Start time of the cuepoint relative to start of the stream.
|
|
|
|
double start_time_in_seconds = 0;
|
|
|
|
|
|
|
|
/// Duration of the ad.
|
|
|
|
double duration_in_seconds = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Cuepoint generator related parameters.
|
|
|
|
struct AdCueGeneratorParams {
|
|
|
|
/// List of cuepoints.
|
|
|
|
std::vector<Cuepoint> cue_points;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace shaka
|
|
|
|
|
2023-10-14 16:36:01 +00:00
|
|
|
#endif // PACKAGER_PUBLIC_AD_CUE_GENERATOR_PARAMS_H_
|