kinesis_video_stream_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 
18 #include <kinesis-video-producer/KinesisVideoStream.h>
19 
20 namespace Aws {
21 namespace Kinesis {
22 
24 {
25 public:
29  virtual bool IsReady() const = 0;
30 
37  virtual bool Stop() = 0;
38 
45  virtual bool PutFrame(com::amazonaws::kinesis::video::KinesisVideoFrame frame) const = 0;
46 
59  virtual bool PutFragmentMetadata(const std::string& name,
60  const std::string& value, bool persistent = true) = 0;
61 
62  virtual std::shared_ptr<com::amazonaws::kinesis::video::KinesisVideoStream>
64  return nullptr;
65  };
66 
68 };
69 
71 {
72 public:
74  std::shared_ptr<com::amazonaws::kinesis::video::KinesisVideoStream> video_stream)
75  : video_stream_(video_stream){};
76 
77  virtual bool IsReady() const override;
78  virtual bool Stop() override;
79  virtual bool PutFrame(com::amazonaws::kinesis::video::KinesisVideoFrame frame) const override;
80  virtual bool PutFragmentMetadata(const std::string& name,
81  const std::string& value, bool persistent = true) override;
82  virtual std::shared_ptr<com::amazonaws::kinesis::video::KinesisVideoStream>
83  GetKinesisVideoStream() override;
84 
85 private:
86  std::shared_ptr<com::amazonaws::kinesis::video::KinesisVideoStream> video_stream_;
87 };
88 
89 } // namespace Kinesis
90 } // namespace Aws
virtual bool PutFrame(com::amazonaws::kinesis::video::KinesisVideoFrame frame) const =0
std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > video_stream_
KinesisVideoStreamImpl(std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > video_stream)
virtual std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > GetKinesisVideoStream()
virtual bool PutFragmentMetadata(const std::string &name, const std::string &value, bool persistent=true)=0


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