kinesis_video_producer_interface.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #pragma once
17 
19 #include <kinesis-video-producer/KinesisVideoProducer.h>
20 
21 namespace Aws {
22 namespace Kinesis {
23 
25 {
26 public:
27 
34  virtual std::shared_ptr<KinesisVideoStreamInterface> CreateStreamSync(
35  std::unique_ptr<com::amazonaws::kinesis::video::StreamDefinition> stream_definition) = 0;
36 
45  virtual void FreeStream(
46  std::shared_ptr<KinesisVideoStreamInterface> kinesis_video_stream) = 0;
47 
49 };
50 
52 {
53 public:
54  KinesisVideoProducerImpl(std::unique_ptr<com::amazonaws::kinesis::video::KinesisVideoProducer> video_producer)
55  : video_producer_(std::move(video_producer)){};
56 
57  virtual std::shared_ptr<KinesisVideoStreamInterface> CreateStreamSync(
58  std::unique_ptr<com::amazonaws::kinesis::video::StreamDefinition> stream_definition) override;
59 
60  virtual void FreeStream(
61  std::shared_ptr<KinesisVideoStreamInterface> kinesis_video_stream) override;
62 
63 private:
64  std::unique_ptr<com::amazonaws::kinesis::video::KinesisVideoProducer> video_producer_;
65 };
66 
67 
68 } // namespace Kinesis
69 } // namespace Aws
virtual void FreeStream(std::shared_ptr< KinesisVideoStreamInterface > kinesis_video_stream)=0
KinesisVideoProducerImpl(std::unique_ptr< com::amazonaws::kinesis::video::KinesisVideoProducer > video_producer)
std::unique_ptr< com::amazonaws::kinesis::video::KinesisVideoProducer > video_producer_
virtual std::shared_ptr< KinesisVideoStreamInterface > CreateStreamSync(std::unique_ptr< com::amazonaws::kinesis::video::StreamDefinition > stream_definition)=0


kinesis_manager
Author(s): AWS RoboMaker
autogenerated on Thu Mar 4 2021 03:28:41