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
|
|
|
|
|
|
|
|
#ifndef PACKAGER_MEDIA_PUBLIC_AD_CUE_GENERATOR_PARAMS_H_
|
|
|
|
#define PACKAGER_MEDIA_PUBLIC_AD_CUE_GENERATOR_PARAMS_H_
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
|
#endif // PACKAGER_MEDIA_PUBLIC_AD_CUE_GENERATOR_PARAMS_H_
|