Public Member Functions | Private Attributes | List of all members
Aws::Kinesis::KinesisVideoStreamImpl Class Reference

#include <kinesis_video_stream_interface.h>

Inheritance diagram for Aws::Kinesis::KinesisVideoStreamImpl:
Inheritance graph

Public Member Functions

virtual std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > GetKinesisVideoStream () override
virtual bool IsReady () const override
 KinesisVideoStreamImpl (std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > video_stream)
virtual bool PutFragmentMetadata (const std::string &name, const std::string &value, bool persistent=true) override
virtual bool PutFrame (com::amazonaws::kinesis::video::KinesisVideoFrame frame) const override
virtual bool Stop () override
- Public Member Functions inherited from Aws::Kinesis::KinesisVideoStreamInterface
virtual ~KinesisVideoStreamInterface ()

Private Attributes

std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > video_stream_

Detailed Description

Definition at line 70 of file kinesis_video_stream_interface.h.

Constructor & Destructor Documentation

Aws::Kinesis::KinesisVideoStreamImpl::KinesisVideoStreamImpl ( std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream >  video_stream)

Definition at line 73 of file kinesis_video_stream_interface.h.

Member Function Documentation

std::shared_ptr< com::amazonaws::kinesis::video::KinesisVideoStream > Aws::Kinesis::KinesisVideoStreamImpl::GetKinesisVideoStream ( )

Reimplemented from Aws::Kinesis::KinesisVideoStreamInterface.

Definition at line 44 of file kinesis_video_stream_interface.cpp.

bool Aws::Kinesis::KinesisVideoStreamImpl::IsReady ( ) const
true if the stream is ready, false otherwise.

Implements Aws::Kinesis::KinesisVideoStreamInterface.

Definition at line 21 of file kinesis_video_stream_interface.cpp.

bool Aws::Kinesis::KinesisVideoStreamImpl::PutFragmentMetadata ( const std::string &  name,
const std::string &  value,
bool  persistent = true 

Appends a "metadata" - a key/value string pair into the stream.

NOTE: The metadata is modeled as MKV tags and are not immediately put into the stream as it might break the fragment. This is a limitation of MKV format as Tags are level 1 elements. Instead, they will be accumulated and inserted in-between the fragments and at the end of the stream.

1name - the metadata name.
2value - the metadata value.
3persistent - whether the metadata is persistent.

Implements Aws::Kinesis::KinesisVideoStreamInterface.

Definition at line 37 of file kinesis_video_stream_interface.cpp.

bool Aws::Kinesis::KinesisVideoStreamImpl::PutFrame ( com::amazonaws::kinesis::video::KinesisVideoFrame  frame) const

Packages and streams the frame to Kinesis Video service.

frameThe frame to be packaged and streamed.
true if the encoder accepted the frame and false otherwise.

Implements Aws::Kinesis::KinesisVideoStreamInterface.

Definition at line 31 of file kinesis_video_stream_interface.cpp.

bool Aws::Kinesis::KinesisVideoStreamImpl::Stop ( )

Stops the the stream. Consecutive calls will fail until start is called again.

NOTE: The function is async and will return immediately but the stream buffer will continue emptying until it's finished and the close stream will be called.

Implements Aws::Kinesis::KinesisVideoStreamInterface.

Definition at line 26 of file kinesis_video_stream_interface.cpp.

Member Data Documentation

std::shared_ptr<com::amazonaws::kinesis::video::KinesisVideoStream> Aws::Kinesis::KinesisVideoStreamImpl::video_stream_

Definition at line 86 of file kinesis_video_stream_interface.h.

The documentation for this class was generated from the following files:

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