19 class RtmpMessageDetails;
26 RtmpStream(std::shared_ptr<StreamStats> streamStats);
29 void Start(
const std::string& url);
TTV_ErrorCode AddFLVData(const uint8_t *data, size_t length)
RtmpContext mContext
Definition: rtmpstream.h:52
TTV_ErrorCode BeginFLVChunk(flv::TagTypes type, uint32_t timestamp, size_t length)
TTV_ErrorCode EndFLVChunk()
Definition: rtmpcontext.h:31
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
TTV_ErrorCode GetAverageSendBitRate(uint64_t measurementWindowMilliseconds, uint64_t &bitsPerSecond) const
Definition: rtmpstream.h:43
Definition: rtmpstream.h:23
BufferedSocket mSocket
Definition: rtmpcontext.h:71
TagTypes
Definition: flvformat.h:22
TTV_ErrorCode GetAverageSendBitRate(uint64_t measurementWindow, uint64_t &bitsPerSecond) const
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
RtmpMessageDetails mChunkDetails
Definition: rtmpstream.h:55
TTV_ErrorCode GetCongestionLevel(uint64_t measurementWindow, double &congestionLevel) const
TTV_ErrorCode GetCongestionLevel(uint64_t measurementWindowMilliseconds, double &congestionLevel) const
Definition: rtmpstream.h:47
RtmpStream(std::shared_ptr< StreamStats > streamStats)
void Start(const std::string &url)
~RtmpStream()
Definition: rtmpstream.h:27
std::array< std::unique_ptr< RtmpState >, static_cast< uint32_t >RtmpContext::State::Count) > mStates
Definition: rtmpstream.h:53