Add skeleton AdCueGenerator handler

Change-Id: I53ba982eb76c7f61122e226d295e6989fe425ae5
This commit is contained in:
Kamesh Devarakonda 2017-11-16 16:41:46 -05:00
parent dcf2d2fc0b
commit 622ff64595
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,19 @@
// Copyright 2017 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
#include "packager/media/ad_cue_generator/ad_cue_generator.h"
namespace shaka {
namespace media {
AdCueGenerator::AdCueGenerator(
const AdCueGeneratorParams& ad_cue_generator_params)
: ad_cue_generator_params_(ad_cue_generator_params) {}
AdCueGenerator::~AdCueGenerator() {}
} // namespace media
} // namespace shaka

View File

@ -0,0 +1,26 @@
# Copyright 2017 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
{
'includes': [
'../../common.gypi',
],
'targets': [
{
'target_name': 'ad_cue_generator',
'type': '<(component)',
'sources': [
'ad_cue_generator.cc',
'ad_cue_generator.h',
],
'dependencies': [
'../base/media_base.gyp:media_base',
'../public/public.gyp:public',
],
},
],
}

View File

@ -0,0 +1,32 @@
// Copyright 2017 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 PACKAGER_MEDIA_AD_CUE_GENERATOR_AD_CUE_GENERATOR_H_
#define PACKAGER_MEDIA_AD_CUE_GENERATOR_AD_CUE_GENERATOR_H_
#include "packager/media/base/media_handler.h"
#include "packager/media/public/ad_cue_generator_params.h"
namespace shaka {
namespace media {
/// AdCueGenerator converts out of band cuepoint markers into SCTE-35 events.
class AdCueGenerator : public MediaHandler {
public:
explicit AdCueGenerator(const AdCueGeneratorParams& ad_cue_generator_params);
~AdCueGenerator() override;
private:
AdCueGenerator(const AdCueGenerator&) = delete;
AdCueGenerator& operator=(const AdCueGenerator&) = delete;
const AdCueGeneratorParams ad_cue_generator_params_;
};
} // namespace media
} // namespace shaka
#endif // PACKAGER_MEDIA_AD_CUE_GENERATOR_AD_CUE_GENERATOR_H_