#include <streamstats.h>
◆ value_t
◆ StatType
| Enumerator |
|---|
| RtmpState | The value should be interpretted as RtmpState.
|
| RtmpTotalBytesSent | The total number of bytes that have been sent over the socket via RTMP.
|
| TotalVideoPacketsSent | The total number of video packets sent.
|
◆ Add()
| void ttv::broadcast::StreamStats::Add |
( |
StatType |
type, |
|
|
uint64_t |
data |
|
) |
| |
Reports a new metric instance. This can be called from any thread.
◆ AddListener()
| void ttv::broadcast::StreamStats::AddListener |
( |
const std::shared_ptr< IListener > & |
listener | ) |
|
Must be called from the same thread as Flush().
◆ Flush()
| void ttv::broadcast::StreamStats::Flush |
( |
| ) |
|
Flushes all stats in the registered listeners.
◆ RemoveListener()
| void ttv::broadcast::StreamStats::RemoveListener |
( |
const std::shared_ptr< IListener > & |
listener | ) |
|
Must be called from the same thread as Flush().
◆ mListeners
◆ mQueue
The documentation for this class was generated from the following file:
- modules/broadcast/broadcast_common/include/twitchsdk/broadcast/internal/streamstats.h