Add skeleton AdCueGenerator handler
Change-Id: I53ba982eb76c7f61122e226d295e6989fe425ae5
This commit is contained in:
parent
dcf2d2fc0b
commit
622ff64595
|
@ -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
|
|
@ -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',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
|
@ -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_
|
Loading…
Reference in New Issue